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
I've reviewed the code associated with the OnConnect and OnDisconnect events and I don't think it's reasonably possible to swap the sequence of these events, as they are triggered as they occur in different goroutines with no cross-communication.
Your best option may be to track the client ids on the event handling side and then only execute the relevant code if the client has been reconnected - eg. server.ErrSessionReestablished
…as been reconnected (#198)
* storage hook should not execute the relevant code if the client has been reconnected #78
* add test cases for coverage decrease
add test cases for coverage decrease
my implement code
client 1 connects to the server, it prints
client 2 use the same clientid as client 1 connets to the server, it prints
i think when client 2 use the same clientid as client 1 connets to the server, it should print like
it should be trigger the OnDisconnect before the OnConnect
The text was updated successfully, but these errors were encountered: