Don't disconnect from the websocket when updating the server object state
This commit is contained in:
parent
6966530165
commit
058f72c923
1 changed files with 0 additions and 5 deletions
|
@ -45,11 +45,6 @@ export default () => {
|
|||
setInstance(socket);
|
||||
})
|
||||
.catch(error => console.error(error));
|
||||
|
||||
return () => {
|
||||
socket && socket.close();
|
||||
instance && instance!.removeAllListeners();
|
||||
};
|
||||
}, [ server ]);
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue