Skip to content

Use the verifyClient option of the webSocketServer. #3

Description

@santhoshh-kumar

The rate limiting and connection checks are performed inside the connection event handler. This means a WebSocket connection is already established before the checks are done.

We should use the verifyClient option of the WebSocketServer. This allows us to inspect the request and reject it before the WebSocket handshake is completed, saving server resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions