onzag / itemize

Easy, Fast, Scalable, Reliable; ReactJS based FullStack engine.
https://onzasystems.com
Other
2 stars 1 forks source link

Socket is unidentified #26

Closed onzag closed 4 years ago

onzag commented 4 years ago

In some situations the socket is unidentified when registering, there seems to be a timing issue that does not allow for the token to be registered via the handshake on the socket io remote protocol.

It can be easily replicated by forcefully making the identify request wait for 3 seconds before replying, the client still sends the registering requests despite not having received confirmation from the server that is allowed to do so, causing an error.