Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit b19cbb9

Browse files
Merge pull request #721 from SuperViz/fix/build-esm-files
fix(debug): don't force to reconect in the socket
2 parents e99c89a + 79e99d7 commit b19cbb9

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/services/io/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ export class IOC {
3535
}
3636

3737
private handleConnectionState = (state: Socket.ConnectionState): void => {
38-
const needsToReconnectStates = [
39-
Socket.ClientState.DISCONNECTED,
40-
Socket.ClientState.RECONNECT_ERROR,
41-
];
42-
43-
if (
44-
needsToReconnectStates.includes(state.state) &&
45-
!['io client disconnect', 'Unauthorized connection'].includes(state.reason)
46-
) {
47-
this.forceReconnect();
48-
}
38+
// const needsToReconnectStates = [
39+
// Socket.ClientState.DISCONNECTED,
40+
// Socket.ClientState.RECONNECT_ERROR,
41+
// ];
42+
43+
// if (
44+
// needsToReconnectStates.includes(state.state) &&
45+
// !['io client disconnect', 'Unauthorized connection'].includes(state.reason)
46+
// ) {
47+
// this.forceReconnect();
48+
// }
4949

5050
if (state.reason === 'Unauthorized connection') {
5151
console.error(

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,10 +2666,10 @@
26662666
resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz#96116f2a912e0c02817345b3c10751069920d553"
26672667
integrity sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==
26682668

2669-
"@superviz/[email protected].0":
2670-
version "1.9.0"
2671-
resolved "https://registry.yarnpkg.com/@superviz/socket-client/-/socket-client-1.9.0.tgz#fd14fb485e6b04275f810f2b90b38b62d8af972f"
2672-
integrity sha512-C6IkWJ6mWcL3y6cPvs2yVwTi0YZ/Nm76uYA+736X3vYOPsMna63Jl0nD+iNoIWj0l00hGAR5ZORTWLrMRnrAxA==
2669+
"@superviz/[email protected].1":
2670+
version "1.9.1"
2671+
resolved "https://registry.yarnpkg.com/@superviz/socket-client/-/socket-client-1.9.1.tgz#392c370b049996dd7ea4d668ef9f69f3d8f7a123"
2672+
integrity sha512-esDtE/bSGNW1DeSuqv9/gE4tVDyaYxeQDrSeAlTA+rHQWPLOsOKyYE6r0SyNQJtThzgm0/VLtAGc+pGdcdSc8g==
26732673
dependencies:
26742674
"@reactivex/rxjs" "^6.6.7"
26752675
debug "^4.3.5"

0 commit comments

Comments
 (0)