Web Sockets and their ilk

John Kemp, 15th September 2009

Introduction

People use HTTP to do this anyway...

Long Polling

+-----------+                    +-----------+
|  Client   |                    |  Server   |
+-----------+                    +-----------+
      |                                |
      +------------------------------->|
      |        1. Connect              |
      |                                +---+
      |                                |   | Make
      |                                |<--+ response
      |<-------------------------------+
      |        2. Response             |
      +------------------------------->|
      |        3. New connection       |
      |                                |

Streaming

+-----------+                    +-----------+
|  Client   |                    |  Server   |
+-----------+                    +-----------+
      |                                |
      +------------------------------->|
      |        1. Connect              |
      |                                +---+
      |                                |   | Make
      |                                |<--+ response
      |<-------------------------------+
      |        2. Partial response     |
      |<-------------------------------+
      |        3. Partial response     |
      |                                |

Issues Remain

Possible Requirements [HyBi]

Web Sockets Protocol [WSProtocol]

Web Sockets API [WSAPI]

The ws:, wss: URI scheme(s)

References