You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im trying to closed the connection when running some code and activate the connection again but its give me the error "Websocket was closed before the connection was estabilshed"
and this is how i stop the websocket
webSocketsArr.forEach((e) => {
try {
e.currentWebSocketSpot();
e.currentWebSocketFuture();
} catch (err) {
console.log("err stop ws");
}
});
The text was updated successfully, but these errors were encountered:
im trying to closed the connection when running some code and activate the connection again but its give me the error "Websocket was closed before the connection was estabilshed"
const currentWebSocketSpot = client2.ws.ticker(
symbol.toLowerCase(),
(ticker) => {
createFunc(onMessage, "spot", symbol)({ data: JSON.stringify(ticker) });
}
);
const currentWebSocketFuture = client2.ws.futuresTicker(
symbol.toLowerCase(),
(ticker) => {
createFunc(
onMessage,
"future",
symbol
)({ data: JSON.stringify(ticker) });
}
);
webSocketsArr.push({
currentWebSocketSpot,
currentWebSocketFuture,
});
The text was updated successfully, but these errors were encountered: