Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ConnectResponseHandler

Package version

The handler to set connect event response

Hierarchy

  • ConnectResponseHandler

Index

Methods

Methods

fail

  • fail(code: 400 | 401 | 500, detail?: undefined | string): void
  • Return failed response and the service will reject the client WebSocket connection.

    Parameters

    • code: 400 | 401 | 500

      Code can be 400 user error, 401 unauthorized and 500 server error.

    • Optional detail: undefined | string

      The detail of the error.

    Returns void

success

Generated using TypeDoc