mirror of
https://github.com/wisplite/tether-ts.git
synced 2026-05-01 06:22:41 -05:00
fix json parsing error
This commit is contained in:
Vendored
+1
-1
@@ -8,7 +8,7 @@ export declare class WebSocketHandler {
|
||||
private maxReconnectAttempts;
|
||||
private reconnectInterval;
|
||||
private sendQueue;
|
||||
onMutation: (data: any) => void;
|
||||
onMutation: (mutation_id: string, data: any) => void;
|
||||
startConnection: (url: string) => void;
|
||||
attemptReconnect: () => void;
|
||||
close: () => void;
|
||||
|
||||
Vendored
+1
-1
@@ -28,7 +28,7 @@ export class WebSocketHandler {
|
||||
this.onQuery(data.location, data.data);
|
||||
}
|
||||
else if (data.type === 'mutation') {
|
||||
this.onMutation(data.data);
|
||||
this.onMutation(data.mutation_id || '', data.data);
|
||||
}
|
||||
else if (data.type === 'error') {
|
||||
console.error(data.error);
|
||||
|
||||
Reference in New Issue
Block a user