Ask coding questions

← Back to all posts
Node Websocket Error
h
realTronsi

I have a simple websocket chat application which I finished a while back and decided to add it to repl. It works on localhost, but since local host is http and repl is https, websockets are a bit different.
I'm getting "WebSocket connection to 'wss://nodechat--realtronsi.repl.co/' failed: Error during WebSocket handshake: Unexpected response code: 200".
I know why this happens, but I dont know how to fix this since I've never worked with https before.
Thanks

Voters
mckoss
realTronsi