Below are some small examples which demonstrate various aspects of the BrowserSocket APIs.
NOTE: For the demos to work, you must view them in a recent version of Firefox with the proof-of-concept Firefox extension installed.
BrowserSocket Echo Service
Embed a minimal echo service in a web page.
BrowserSocket Multi Service
Embed two services into the page; the factory uses the resource to determine which to provide.
BrowserSocket Origin Service
An example demonstrating access to the connecting client's origin.
BrowserSocket Subprotocol Example
An example demostrating the use of WebSocket sub-protocols.