SocketIO
kienminho
HOBBYOP

2 years ago

I installed the Nodejs backend on railway, with the socket I configured as follows, and in the client the connection is the 2nd image, but I receive the 3rd image. Can anyone help me?

32 Replies

kienminho
HOBBYOP

2 years ago

552a77d0-6858-464a-ba77-4b68086339b9


brody
EMPLOYEE

2 years ago

does this work locally?


kienminho
HOBBYOP

2 years ago

yes


brody
EMPLOYEE

2 years ago

try using wss:// instead


kienminho
HOBBYOP

2 years ago

Where should I replace it, is it client side?


brody
EMPLOYEE

2 years ago

yes


kienminho
HOBBYOP

2 years ago

Did I change to like this?

1217166339282567400


brody
EMPLOYEE

2 years ago

yes


kienminho
HOBBYOP

2 years ago

Bro, wait a minute, the railway is delaying


kienminho
HOBBYOP

2 years ago

I still have the same situation.

1217167815304413200


kienminho
HOBBYOP

2 years ago

this is, code back-end:

1217168090597556200


kienminho
HOBBYOP

2 years ago

SocketIO


brody
EMPLOYEE

2 years ago

what is your backend's domain?


kienminho
HOBBYOP

2 years ago


kienminho
HOBBYOP

2 years ago

1217168932444832000


brody
EMPLOYEE

2 years ago

what is your frontend's domain?


kienminho
HOBBYOP

2 years ago


kienminho
HOBBYOP

2 years ago

You can visit it


kienminho
HOBBYOP

2 years ago

@Brody you can help me


kienminho
HOBBYOP

2 years ago

Someone, help me!


brody
EMPLOYEE

2 years ago

please be patient, this is community support


brody
EMPLOYEE

2 years ago

what page can i see the error on?


kienminho
HOBBYOP

2 years ago

Page message


kienminho
HOBBYOP

2 years ago

You can search user, and create conversaiton, after You send a message.


kienminho
HOBBYOP

2 years ago

Open dev tools -> Network. You see error


brody
EMPLOYEE

2 years ago

are you sure you are even registering the socketio endpoint in your backend?


kienminho
HOBBYOP

2 years ago

What do you mean I don't understand, can you give me an example?


kienminho
HOBBYOP

2 years ago

After I configured it, it changed from not found to failed

1217376809817997300


kienminho
HOBBYOP

2 years ago

This is front-end, PORT_SOCKET is 443

1217377089343324200


brody
EMPLOYEE

2 years ago

what is the reason for the fail?


Anonymous
TRIAL

2 years ago

has this been resolved


Anonymous
TRIAL

2 years ago

bc I am facing the same issue


Loading...