Intentionally closes the socket connection, marking it as intentional and clearing any error or retry timers to prevent reconnection attempts.
disconnect: () => {
closingIntentionally = true;
clearErrorWithoutCloseTimer();
clearGiveUpTimer();
socket.disconnect();
},
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key