R
Railway3mo ago
Kiênn

SocketIO

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?
No description
No description
No description
25 Replies
Percy
Percy3mo ago
Project ID: 552a77d0-6858-464a-ba77-4b68086339b9
Kiênn
Kiênn3mo ago
552a77d0-6858-464a-ba77-4b68086339b9
Brody
Brody3mo ago
does this work locally?
Kiênn
Kiênn3mo ago
yes
Brody
Brody3mo ago
try using wss:// instead
Kiênn
Kiênn3mo ago
Where should I replace it, is it client side?
Brody
Brody3mo ago
yes
Kiênn
Kiênn3mo ago
Did I change to like this?
No description
Brody
Brody3mo ago
yes
Kiênn
Kiênn3mo ago
Bro, wait a minute, the railway is delaying
Kiênn
Kiênn3mo ago
I still have the same situation.
No description
Kiênn
Kiênn3mo ago
this is, code back-end:
No description
Brody
Brody3mo ago
what is your backend's domain?
Kiênn
Kiênn3mo ago
No description
Brody
Brody3mo ago
what is your frontend's domain?
Kiênn
Kiênn3mo ago
Pinspired
Web site created using create-react-app
Kiênn
Kiênn3mo ago
You can visit it @Brody you can help me Someone, help me!
Brody
Brody3mo ago
please be patient, this is community support what page can i see the error on?
Kiênn
Kiênn3mo ago
Page message You can search user, and create conversaiton, after You send a message. Open dev tools -> Network. You see error
Brody
Brody3mo ago
are you sure you are even registering the socketio endpoint in your backend?
Kiênn
Kiênn3mo ago
What do you mean I don't understand, can you give me an example?
Kiênn
Kiênn3mo ago
After I configured it, it changed from not found to failed
No description
Kiênn
Kiênn3mo ago
This is front-end, PORT_SOCKET is 443
No description
Brody
Brody3mo ago
what is the reason for the fail?