I can't connect to java server with Io Client socket #4912
Unanswered
ebrahemimorteza
asked this question in
Q&A
Replies: 1 comment
-
You need to make sure the request paths match on both side. For example, if your server is served at const socket = io("http://localhost:8080", {
path: "/LAS/chat/" // default to "/socket.io/"
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use url http://localhost:8080/LAS/chat/* but I get every time 404, it doesn't seem to recognize my project name or my address . This is my problem WebSocket connection to 'ws://localhost:8080/socket.io/?chatId=&username=90310995470183035401&idPackage=23&idLesson=27&idReciveer=&user=1&server=&EIO=4&transport=websocket' failed: Error during WebSocket handshake: Unexpected response code: 404
Beta Was this translation helpful? Give feedback.
All reactions