papi-dts
    Preparing search index...

    Interface IRpcWebSocketClientCloserExperimental

    An RPC handler that can close the connections of the clients its websocket server accepted. Only the process that owns the server (main) implements this.

    interface IRpcWebSocketClientCloser {
        closeWebSocketClients(code: number, reason: string): void;
    }

    Implemented by

    Index

    Methods

    • Experimental

      Close every client connection accepted from the websocket server, telling each why. Clients served through IRpcLocalClientAcceptor.acceptLocalClient are left open: whoever handed their sockets over owns closing them.

      Parameters

      • code: number

        WebSocket close code to send to each client

      • reason: string

        Human-readable reason to send to each client

      Returns void