-
Notifications
You must be signed in to change notification settings - Fork 839
v1.4 OnConnect() not triggering #166
Comments
Same here. Have you found any solution? |
Nope, I just went back to using the old version as I didn't trust the v1.4 version at this stage yet. You can fork and hack in the fix, but for us that kind of defeats the purpose of upgrading. Tried to make a clean fix so I could submit a PR, but was unsure where to do that since the relevant code still seems to be in a transition fase between the old master code and v1.4. |
Thank you @stverhae. Could you try again? |
@googollee Thanks, the onConnect handler works well in the example code now! |
Thank you for update. On connect event works now. But what about onDisconnect? |
@tpoxa Currently, if you close socketio connection in js, the server will receive disconnect event, otherwise, the server will receive an error. |
I close socket.io connection in js, but OnDisconnect and OnError event is not trigger. |
@fooevr could you give me any example code? |
@googollee Sadly the OnError callback just pass a error object, no conn provide, so i can't figureout which connection disconnected |
I was checking the impact of v1.4 conversion on my code when I noticed the OnConnect never triggers.
I ran the example in the 1.4 branch and noticed the same issue. Even if you put a panic in the OnConnect handler, nothing happens. Major breaking issue for us.
The text was updated successfully, but these errors were encountered: