You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Acknowledgements callbacks, eg. when you Emit("myMessage", data, func(s string){...})
were not working for me.
I dug into it and found it is because of Line 148 of client.go, which is currently:
case _ACK:
case _BINARY_ACK:
return nil, client.onAck(packet.Id, decoder, packet)
When an _ACK arrives, client.onAck() is never called.
If I change it to this, it works:
case _ACK:
return nil, client.onAck(packet.Id, decoder, packet)
case _BINARY_ACK:
return nil, client.onAck(packet.Id, decoder, packet)
I'm using Go 1.6.0
Maybe it should be like this?
case _ACK, _BINARY_ACK:
return nil, client.onAck(packet.Id, decoder, packet)
The text was updated successfully, but these errors were encountered:
Acknowledgements callbacks, eg. when you Emit("myMessage", data, func(s string){...})
were not working for me.
I dug into it and found it is because of Line 148 of client.go, which is currently:
When an _ACK arrives, client.onAck() is never called.
If I change it to this, it works:
I'm using Go 1.6.0
Maybe it should be like this?
The text was updated successfully, but these errors were encountered: