modality-kit 0.9.3 → 0.9.4
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/dist/index.js
CHANGED
|
@@ -5797,7 +5797,6 @@ class WebSocketClient {
|
|
|
5797
5797
|
this.isManualDisconnect = false;
|
|
5798
5798
|
this.ws = new WebSocket(this.url);
|
|
5799
5799
|
this.ws.onopen = (event) => {
|
|
5800
|
-
logger3.info("WebSocket connected:", event);
|
|
5801
5800
|
this.reconnectAttempts = 0;
|
|
5802
5801
|
this.reconnectDelay = this.config.initialReconnectDelay;
|
|
5803
5802
|
this.startHeartbeat();
|
|
@@ -5813,7 +5812,7 @@ class WebSocketClient {
|
|
|
5813
5812
|
};
|
|
5814
5813
|
this.ws.onmessage = (event) => {
|
|
5815
5814
|
if (this.config.onReceiveMessage) {
|
|
5816
|
-
|
|
5815
|
+
this.config.onReceiveMessage(event);
|
|
5817
5816
|
}
|
|
5818
5817
|
try {
|
|
5819
5818
|
const message = JSONRPCUtils.deserialize(event.data);
|
|
@@ -7,7 +7,7 @@ interface WebSocketConfig {
|
|
|
7
7
|
heartbeatInterval: number;
|
|
8
8
|
enableKeepAlive: boolean;
|
|
9
9
|
handleMessage: (validMessage: JSONRPCValidationResult, ws: WebSocketClient) => void;
|
|
10
|
-
onReceiveMessage?: (event: any) =>
|
|
10
|
+
onReceiveMessage?: (event: any) => void;
|
|
11
11
|
}
|
|
12
12
|
interface WebSocketInfo {
|
|
13
13
|
url: string;
|
package/package.json
CHANGED