@mm-institutional/websocket-client
v0.2.20
Published
This package will export WebsocketClient, responsible for establishing a connection to the WebSocket API and handle all the messages for transaction updates.
Downloads
14
Readme
MetaMask Institutional WebsocketClient
DISCLAIMER. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.
Usage
Setting up
npm i @mm-institutional/websocket-client
yarn add @mm-institutional/websocket-client