New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to make namespaces work #59
Comments
Hi Sanket, Did you have any update on that ? I run into the same problem here. Cheers. |
+1 |
I am also facing the same issue. Frame sent => 42["message","hello"] for the server code: server.On("connection", func(so sio.Socket) {
fmt.Printf("connected: %s of nsp: %s - %s -\n", so.Id(), so.Namespace(), server.Name())
so.On("message", func(msg string) {
fmt.Println("got message: ", msg)
so.Emit("message", msg+" from server "+so.Namespace())
})
...
}) server output:
the last two lines in server output comes from modified handler.go func (h *socketHandler) Emit(message string, args ...interface{}) error {....} |
I will try to figure out this issue. |
Having the same issue here, any updates on this? |
See: googollee#59 The socket.io client requires an echoed connect packet, which is mising from the current code. NOTE: I believe navneetk's example from Mar 18 2015 shows a different issue.
@navneetk my fix may not solve your problem. It seems unrelated to the code I changed. I'm only able to confirm that without my fix, clients can't connect fully and with it, they are connected. EDIT: This fix is needed, but not enough. I'm running into the same problem described above, even with my fix. |
Would really like to use this in production! Namespaces is a must. I made this little test app to compare node socket.io and go socket.io with namespaces. https://github.com/collinglass/socketio |
Is there any update on this? It's really not viable to build big applications with this library without namespace support. |
Hi Sanket, Did you have any update on that ? I run into the same problem here. Cheers. |
Closing this issue because it is old. There are a couple of newer issues with the same problem so please refer to those. Thanks! |
Set state of closing before closing the socket
I'm trying to create a namespace, but I'm not able to connect to the namespace from the client side.
Server:
Client:
Am I missing something?
The text was updated successfully, but these errors were encountered: