libshv-js 3.9.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ws-client.ts +2 -2
package/package.json
CHANGED
package/src/ws-client.ts
CHANGED
|
@@ -139,10 +139,10 @@ export const NotImplemented = createErrorClass(ErrorCode.NotImplemented);
|
|
|
139
139
|
|
|
140
140
|
class WsClient {
|
|
141
141
|
private requestId = 1;
|
|
142
|
-
private pingTimerId =
|
|
142
|
+
private pingTimerId: ReturnType<typeof globalThis.setInterval> | undefined = undefined;
|
|
143
143
|
private rpcHandlers: Array<{
|
|
144
144
|
resolve: RpcResponseResolver;
|
|
145
|
-
timeout_handle:
|
|
145
|
+
timeout_handle: ReturnType<typeof globalThis.setTimeout>;
|
|
146
146
|
}> = [];
|
|
147
147
|
private readonly subscriptions: Subscription[] = [];
|
|
148
148
|
private readonly websocket: WebSocket;
|