papi-dts
    Preparing search index...
    • Experimental

      Close every client connected to this process's PAPI websocket server on port 8876, telling each why. Main-process only. A client such as the .NET data provider runs until its connection drops, so this is how main asks it to finish up and exit. Renderers' local connections are left open; see IRpcWebSocketClientCloser.closeWebSocketClients.

      Does nothing when the network service is not initialized, since then no client is connected.

      Parameters

      • code: number

        WebSocket close code to send to each client

      • reason: string

        Human-readable reason to send to each client

      Returns void

      If this is not the main process, or its handler cannot close websocket clients