handleWebSocket

Scheduled for deprecation - use a @safe callback instead.

  1. void handleWebSocket(WebSocketHandshakeDelegate on_handshake, HTTPServerRequest req, HTTPServerResponse res)
  2. void handleWebSocket(void delegate(scope WebSocket) @(system) on_handshake, HTTPServerRequest req, HTTPServerResponse res)
    @safe @system
    void
    handleWebSocket
    (
    scope void delegate
    (
    scope WebSocket
    )
    @system
    on_handshake
    ,,)

Meta