Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-executor / server / createWSServer

Function: createWSServer() ​

createWSServer(port, host): object

Defined in: packages/chaingraph-executor/server/ws-server.ts:18

Parameters ​

port ​

number = 4021

host ​

string = '0.0.0.0'

Returns ​

object

handler ​

handler: object

handler.broadcastReconnectNotification() ​

broadcastReconnectNotification: () => void

Returns ​

void

shutdown() ​

shutdown: () => void

Returns ​

void

wss ​

wss: Server<typeof WebSocket, typeof IncomingMessage>

Licensed under BUSL-1.1