Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

WebSockets 101

A simple example of using WebSockets for communication.

You can learn about the basics of WebSockets by reading the Introducing WebSockets: Bringing Sockets to the Web article on HTML5Rocks.

WebSocket is a protocol providing full-duplex communications channels over a single TCP connection.

This example opens a WebSocket connection to an echo server (ws://echo/, sends data to the server, and then displays the response on the web page.

Please report any bugs or feature requests.

You can’t perform that action at this time.