We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aec239 commit 9f1da48Copy full SHA for 9f1da48
lazer/sdk/js/src/socket/web-socket-pool.ts
@@ -53,13 +53,13 @@ export class WebSocketPool {
53
// If a websocket client unexpectedly disconnects, ResilientWebSocket will reestablish
54
// the connection and call the onReconnect callback.
55
// When we reconnect, replay all subscription messages to resume the data stream.
56
- rws.onReconnect = async () => {
+ rws.onReconnect = () => {
57
if (rws.wsUserClosed) {
58
return;
59
}
60
for (const [, request] of this.subscriptions) {
61
try {
62
- await rws.send(JSON.stringify(request));
+ void rws.send(JSON.stringify(request));
63
} catch (error) {
64
this.logger.error(
65
"Failed to resend subscription on reconnect:",
0 commit comments