WebSockets:
*
Syntax
*
Making a secure web socket connection
var sck = "wss://site.com/wss-handler";
var wss = new WebSocket(sck);
This uses the wss instead of ws to make a secure web socket connection which make use of HTTPS instead of HTTP