Cannot get it to connect when using a namespace #1980
Replies: 1 comment 4 replies
-
You should use:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've already spent way too many hours on this and I'm starting to get crazy. I got an old project (that somehow used to work) but I can't get it to work locally.
On the server side, this is the socket code:
installed packages:
This is running on a docker container, run with
-p 3002:80
On the client side, while this:
seems to connect the client to the server ("Client has connected to the server!" is printed on the console), I am not connected to the /game namespace so I messages don't really go anywhere.
If I try this, so it connects to the
/game
namespace:I get this error on the JS console:
It seems to be removing the port number. The thing it, it must have worked at some point and I believe I have not changed any versions (I've read it could be to version incompatibility)
Client-side library:
socket.io-1.7.3
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions