cubic-js/cubic-client

Socket reconnect not working

Kaptard opened this issue · 1 comments

From @Kaptard on May 16, 2017 19:10

Needs to be fixed rather urgently, since production build is affected by this.
To reproduce: Launch any blitz.js stack. Look at the logs to see which PID the api node has, then restart that process. Client nodes won't reconnect.

Copied from original issue: nexus-devs/nexushub-client#1

After analysis: This bug occurs when a client doesn't post anything to the server, thus not ever refreshing their token. On reconnect, the api refuses connection due to expired JWT