@metamask-institutional/websocket-client
Advanced tools
Comparing version
@@ -18,2 +18,9 @@ # Change Log | ||
## [0.1.15](https://github.com/consensys-vertical-apps/metamask-institutional/compare/websocket-client-v0.1.14...websocket-client-v0.1.15) (2023-02-07) | ||
### Bug Fixes | ||
* **websocket:** fixes a spelling error ([#109](https://github.com/consensys-vertical-apps/metamask-institutional/issues/109)) ([b057d48](https://github.com/consensys-vertical-apps/metamask-institutional/commit/b057d4890a4822c4bbcd4a9c5559b6731f6e3755)) | ||
## [0.1.12](https://github.com/consensys-vertical-apps/metamask-institutional/compare/@metamask-institutional/websocket-client@0.1.7...@metamask-institutional/websocket-client@0.1.12) (2023-02-02) | ||
@@ -20,0 +27,0 @@ |
{ | ||
"name": "@metamask-institutional/websocket-client", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "This package will export WebsocketClient, responsible for establishing a connection to the WebSocket API and handle all the messages for transaction updates.", | ||
@@ -30,3 +30,3 @@ "author": "Antonio Regadas <apregadas@gmail.com>", | ||
}, | ||
"gitHead": "6d0d21860abe71c782d4967ff8a1c6adde611cb6", | ||
"gitHead": "715068530cfecdcf0f8c84ceea2122cfd3b8a3be", | ||
"dependencies": { | ||
@@ -33,0 +33,0 @@ "@metamask-institutional/custody-keyring": "^0.0.17", |
@@ -27,3 +27,3 @@ /// <reference types="node" /> | ||
tryToReconnect(): void; | ||
sendAcknowledgement(updateId: string): void; | ||
sendAcknowledgement(traceId: string): void; | ||
requestStreamForCustomerProof(customerProof: string): Promise<IRequestStreamResponse>; | ||
@@ -30,0 +30,0 @@ keepAlive(): void; |
@@ -115,7 +115,7 @@ "use strict"; | ||
} | ||
sendAcknowledgement(updateId) { | ||
sendAcknowledgement(traceId) { | ||
this.ws.send(JSON.stringify({ | ||
event: "custodian_update_acknowledement", | ||
event: "custodian_update_acknowledgement", | ||
data: { | ||
updateId, | ||
traceId, | ||
}, | ||
@@ -122,0 +122,0 @@ })); |
{ | ||
"name": "@metamask-institutional/websocket-client", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "This package will export WebsocketClient, responsible for establishing a connection to the WebSocket API and handle all the messages for transaction updates.", | ||
@@ -30,3 +30,3 @@ "author": "Antonio Regadas <apregadas@gmail.com>", | ||
}, | ||
"gitHead": "6d0d21860abe71c782d4967ff8a1c6adde611cb6", | ||
"gitHead": "715068530cfecdcf0f8c84ceea2122cfd3b8a3be", | ||
"dependencies": { | ||
@@ -33,0 +33,0 @@ "@metamask-institutional/custody-keyring": "^0.0.17", |
@@ -186,8 +186,8 @@ import { MmiConfigurationController } from "@metamask-institutional/custody-keyring"; | ||
public sendAcknowledgement(updateId: string): void { | ||
public sendAcknowledgement(traceId: string): void { | ||
this.ws.send( | ||
JSON.stringify({ | ||
event: "custodian_update_acknowledement", | ||
event: "custodian_update_acknowledgement", | ||
data: { | ||
updateId, | ||
traceId, | ||
}, | ||
@@ -194,0 +194,0 @@ }), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
58252
0.73%