@metamask-institutional/websocket-client
Advanced tools
Comparing version
@@ -25,2 +25,9 @@ # Change Log | ||
## [0.1.19](https://github.com/consensys-vertical-apps/metamask-institutional/compare/websocket-client-v0.1.18...websocket-client-v0.1.19) (2023-03-28) | ||
### Bug Fixes | ||
* **websocketclient:** marco event ([#207](https://github.com/consensys-vertical-apps/metamask-institutional/issues/207)) ([1788152](https://github.com/consensys-vertical-apps/metamask-institutional/commit/1788152b1a9f2b77d8c5ad0b2e8824a3401c5ba1)) | ||
## [0.1.18](https://github.com/consensys-vertical-apps/metamask-institutional/compare/websocket-client-v0.1.17...websocket-client-v0.1.18) (2023-02-17) | ||
@@ -27,0 +34,0 @@ |
{ | ||
"name": "@metamask-institutional/websocket-client", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"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": "ed1781e14c1ff334089691b8c3251545bfbb853d", | ||
"gitHead": "450adc13c5a8dfaf70a00fd6a3ccbb3e150a53a1", | ||
"dependencies": { | ||
@@ -33,0 +33,0 @@ "@metamask-institutional/custody-keyring": "^0.0.18", |
@@ -134,3 +134,5 @@ "use strict"; | ||
if (this.ws.readyState == this.ws.OPEN) { | ||
this.ws.send("Marco"); | ||
this.ws.send(JSON.stringify({ | ||
event: "marco", | ||
})); | ||
} | ||
@@ -137,0 +139,0 @@ this.timerID = setTimeout(this.keepAlive.bind(this), 20000); |
{ | ||
"name": "@metamask-institutional/websocket-client", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"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": "ed1781e14c1ff334089691b8c3251545bfbb853d", | ||
"gitHead": "450adc13c5a8dfaf70a00fd6a3ccbb3e150a53a1", | ||
"dependencies": { | ||
@@ -33,0 +33,0 @@ "@metamask-institutional/custody-keyring": "^0.0.18", |
@@ -5,3 +5,3 @@ # MetaMask Institutional WebsocketClient | ||
A Typescript library to use types and interfaces in order to interact with. [MetaMask Institutional](https://metamask.io/institutions); the most trusted DeFi wallet and Web3 gateway for organizations. | ||
A Typescript library that exports a WebSocket client, it allows us to get Tx updates from the WS API and send them to the TransactionUpdate controller. | ||
@@ -8,0 +8,0 @@ ## Usage |
@@ -207,3 +207,7 @@ import { MmiConfigurationController } from "@metamask-institutional/custody-keyring"; | ||
if (this.ws.readyState == this.ws.OPEN) { | ||
this.ws.send("Marco"); | ||
this.ws.send( | ||
JSON.stringify({ | ||
event: "marco", | ||
}), | ||
); | ||
} | ||
@@ -210,0 +214,0 @@ this.timerID = setTimeout(this.keepAlive.bind(this), 20000); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
60440
0.89%927
0.65%