problem with WebSocket
arc1773
TRIALOP

2 years 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. (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.

1 Replies

2 years ago

You can not use any other port than 443.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...