Stone.js API
    Preparing search index...

    A WebSocket server, duck-typed over the ws WebSocketServer instance.

    interface WsServer {
        clients?: Set<WsSocket>;
        close: (callback?: (error?: Error) => void) => void;
        on: (event: string, listener: (...args: any[]) => void) => void;
    }
    Index
    clients?: Set<WsSocket>

    The connected clients (when the server tracks them).

    close: (callback?: (error?: Error) => void) => void

    Close the server.

    on: (event: string, listener: (...args: any[]) => void) => void

    Subscribe to a server event (connection, error, close).