โ DEPRECATED โ
Moved to the 0x Mesh repo examples directory.
Example 0x Mesh WebSocket Client in Javascript & Typescript
This repo contains a very simple example of using web3-providers's WebsocketProvider
as a client for interacting with 0x Mesh's WebSocket endpoints.
Setup
- Install the dependencies
yarn install
-
Start your Mesh node locally on port
60557
for Ethereum mainnet (see Docker command in docs) -
Run Javascript WS client
node index.js
- Run Typescript WS client
yarn run:ts