Socket.io Error during WebSocket handshake: Unexpected response code: 502

Hi,
New error appeared trying to connect to socket io server. Before that connections were successfull. Error message in client:
websocket.js:116 WebSocket connection to ‘wss://tangy-denim-juice.glitch.me/socket.io/?EIO=3&transport=websocket’ failed: Error during WebSocket handshake: Unexpected response code: 502

How to resolve it?

It started working for no reason again.

1 Like

I just put code into glitch environment I know nothing about.
On the client I am trying to establish connection with this code:

const socket = io(“https://tangy-denim-juice.glitch.me”, {

secure: true,

transports: [“websocket”, “polling”, “flashsocket”],
});