Web Sockets

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search

Web Sockets is a technology providing for bi-directional, full-duplex communications channels, over a single Transmission Control Protocol (TCP) socket, designed to be implemented in web browsers and web servers. It is being standardized in its JavaScript API by W3C, and in its protocol by IETF.


Proxy traversal

Web Socket protocol client implementations try to detect if the user agent is configured to use a proxy when connecting to destination host and port and, if it is, uses HTTP CONNECT method to set up a persistent tunnel.

URL scheme

The Web Socket protocol specification defines two new URI schemes, ws: and wss:, for unencrypted and encrypted connections. Apart from the scheme name, the rest of the URI components are defined to use URI generic syntax.

Browser Implementations

Server Implementations

  • Kaazing, Websocket Gateway, production since April 2009, including client-side Websocket emulation support for browsers without native implementation of Web Socket APIs. Runs on the Java software platform. Currently released version 9.06_7.
  • jWebSocket, Open Source Java WebSocket Streaming and Communication Server, including a JavaScript Client for HTML 5 compliant browsers]
  • APE, Comet server and client-side JavaScript framework that support both Websockets and other transport methods (long polling, xhrstreaming)
  • Jetty, since version 7.0.1, the HTTP server and servlet container provides a Web Sockets server in Java
  • Cramp, Realtime web application framework for Ruby, extends Thin/Rainbows to support Web Sockets handshaking and provides Jetty servlet like mechanism for sending/receiving data over Web Sockets.
  • Netty, this patch provides support for upgrading an HTTP connection to the Web Sockets protocol and provides support for encoding and decoding Web Socket frames in Java
  • phpwebsocket, a quick hack to implement Web Sockets client and server in PHP
  • phpwebsockets, a bit more complex but still experimental Web Sockets Server PHP
  • web-socket-js, an experimental client implementation based on Flash
  • web-socket-ruby, an experimental client and server implementation in Ruby
  • mod_pywebsocket, an experimental extension for the Apache HTTP Server

See also


  1. [1], a post on the Chromium Blog announcing Web Sockets in Chrome, Chromium, and WebKit.
  2. [2], in progress and described in Mozilla's bugzilla.

External Links

Personal tools

Served in 0.085 secs.