Interface ServerEvents

interface ServerEvents {
    clientMessage: [connection: ServerClientConnection, message: NetIPCMessage];
    clientRequest: [connection: ServerClientConnection, message: NetIPCMessage];
    close: [];
    connect: [connection: Connection, payload?: any];
    debug: [message: DebugMessage];
    disconnect: [connection: Connection, reason?: any];
    error: [error: ErrorEvent, connection: Connection];
    message: [message: any, connection: Connection];
    ready: [address: string];
    request: [request: any, respond: NetIPCMessageRespond, connection: Connection];
}

Properties

clientMessage: [connection: ServerClientConnection, message: NetIPCMessage]
clientRequest: [connection: ServerClientConnection, message: NetIPCMessage]
close: []
connect: [connection: Connection, payload?: any]
debug: [message: DebugMessage]
disconnect: [connection: Connection, reason?: any]
error: [error: ErrorEvent, connection: Connection]
message: [message: any, connection: Connection]
ready: [address: string]
request: [request: any, respond: NetIPCMessageRespond, connection: Connection]

Generated using TypeDoc