problem with WebSocket
arc1773TRIAL
9 months ago
When client sends some data to server I have error:
(index):40 Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state. at HTMLButtonElement.<anonymous> (https://testwebsocket-production.up.railway.app/:40:12)
and some time later I have error:
(index):21 WebSocket connection to 'wss://testwebsocket-production.up.railway.app:9090/' failed:
(anonymous)
Meanwhile logs are ok.
work of my game:
client connects to server -> server sends code of client to client -> client try make a connection by
let ws = new WebSocket("wss://testwebsocket-production.up.railway.app:9090");
and there I think is problem.