Making a secure web socket connection
suggest changeconst 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents