Making a secure web socket connection

suggest change
const sck = "wss://site.com/wss-handler";
const wss = new WebSocket(sck);

wss:// is the WebSocket protocol over TLS. ws:// is not encrypted. WebSocket is available in browsers and in current Node. The connection is not an HTTP request, though the handshake starts as HTTP.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents