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 was confused when I debug here, I didn't understand what the different operations meant until I notice the comments. Maybe define enum for every operation and replace magic number can make it easy to understand.
e.g.
// use iota if operation number is progressiveconst (
_=iotaxxxOperation
)
// or const (
PingOperation=1ReconnectOperation=7InvalidSessionOperation=9HeartbeatOperation=11
)
...switche.Operation {
casePingOperation:
//...caseReconnectOperation:
//...default:
//...
}
The text was updated successfully, but these errors were encountered:
I was confused when I debug here, I didn't understand what the different operations meant until I notice the comments.
Maybe define enum for every operation and replace magic number can make it easy to understand.
e.g.
The text was updated successfully, but these errors were encountered: