UNPKG

@newcoin-core/agent

Version:

A super simple way to set up newOS agents

10 lines (9 loc) 377 B
import WebSocket from 'ws'; export type WSState = { socket: WebSocket | null; toggle: (token: string) => void; url: string; send: (msg: any) => void; }; export declare const newgraphWebsocketsClientManager: (upd: (wsServer: string, token: string) => string) => WSState; export type NewgraphWebsocketsClient = ReturnType<typeof newgraphWebsocketsClientManager>;