<br>Mozilla Developer Network <br>Zones <br>Web Platform <br>Developer Program <br>Tools <br>Demos <br>Search <br>Languages <br>Edit <br>Settings <br>MDN <br>WebSockets <br>Writing WebSocket client applications Writing <br>WebSocket client applications <br>In This <br>Availability of WebSockets <br>Creating a WebSocket object <br>Connection errors <br>Examples <br>Sending data to the server <br>Using JSON to transmit objects <br>Receiving messages from the server <br>Receiving and interpreting JSON objects <br>Text data format <br>Closing the connection <br>Security considerations <br>Draft <br>This page is not complete