WebSocket Feed
Connection
import { io } from "socket.io-client";
const socket = io("https://oecsplorer.oeconomia.io");
// Subscribe to all transactions
socket.emit("join", "all_transactions");
// Or subscribe to a specific protocol
socket.emit("join", "protocol:alluria");
// Listen for new transactions
socket.on("new_transaction", (data) => {
console.log(data.summary);
// { txHash, protocol, actionType, fromAddress, toAddress, ... }
});Available Rooms
Room
Description
Event Payload
Frontend Hook
Server-Side Broadcasting
Last updated