diff --git a/src/services/io/index.ts b/src/services/io/index.ts index ba5ce4b3..3256bb5f 100644 --- a/src/services/io/index.ts +++ b/src/services/io/index.ts @@ -35,17 +35,17 @@ export class IOC { } private handleConnectionState = (state: Socket.ConnectionState): void => { - const needsToReconnectStates = [ - Socket.ClientState.DISCONNECTED, - Socket.ClientState.RECONNECT_ERROR, - ]; - - if ( - needsToReconnectStates.includes(state.state) && - !['io client disconnect', 'Unauthorized connection'].includes(state.reason) - ) { - this.forceReconnect(); - } + // const needsToReconnectStates = [ + // Socket.ClientState.DISCONNECTED, + // Socket.ClientState.RECONNECT_ERROR, + // ]; + + // if ( + // needsToReconnectStates.includes(state.state) && + // !['io client disconnect', 'Unauthorized connection'].includes(state.reason) + // ) { + // this.forceReconnect(); + // } if (state.reason === 'Unauthorized connection') { console.error( diff --git a/yarn.lock b/yarn.lock index ce4a7be8..78a3baed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2666,10 +2666,10 @@ resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz#96116f2a912e0c02817345b3c10751069920d553" integrity sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg== -"@superviz/socket-client@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@superviz/socket-client/-/socket-client-1.9.0.tgz#fd14fb485e6b04275f810f2b90b38b62d8af972f" - integrity sha512-C6IkWJ6mWcL3y6cPvs2yVwTi0YZ/Nm76uYA+736X3vYOPsMna63Jl0nD+iNoIWj0l00hGAR5ZORTWLrMRnrAxA== +"@superviz/socket-client@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@superviz/socket-client/-/socket-client-1.9.1.tgz#392c370b049996dd7ea4d668ef9f69f3d8f7a123" + integrity sha512-esDtE/bSGNW1DeSuqv9/gE4tVDyaYxeQDrSeAlTA+rHQWPLOsOKyYE6r0SyNQJtThzgm0/VLtAGc+pGdcdSc8g== dependencies: "@reactivex/rxjs" "^6.6.7" debug "^4.3.5"