JavaScript Stabilire una connessione web socket


Esempio

var wsHost = "ws://my-sites-url.com/path/to/web-socket-handler";
var ws = new WebSocket(wsHost);