On my project https://glitch.com/edit/#!/scarlet-geese-1, I have a websocket server and a script to connect to it:
const socket = new WebSocket("wss://scarlet-geese-1.glitch.me:40510/") socket.onopen = e => console.log(e) socket.onclose = socket.onerror = socket.onmessage = e => console.log(e)
But after a long time, I’m getting the follow error:
WebSocket connection to 'ws://scarlet-geese-1.glitch.me:40510/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
It successfully connects locally, but not on glitch.
Could anyone help me? Thanks