Websocket

Building Event Driven Architecture(EDA)

Unlike other Central Limit Order Books (CLOBs), Standard features a unique architecture designed to provide real-time updates directly from the exchange.

This system allows developers to build real-time applications or programs that react to events as they occur, eliminating the need for periodic API requests.

As a result, it offers more efficient and responsive solutions for event-driven applications.

To open connection to server, use standardweb3 library to initialize socket.io client.

import { standardIOsocket } from "standardweb3"

function main() {
  const io = standardIOsocket("Ethereum");
  io.on("tick", (tick: any) => {
    console.log("tick", tick);
  });
}

Here are the messages the client receives from the server after it is connected.

Last updated