Skip to content

WebSocket Next: Provide access to the remote address of incoming connections #49840

@gamliela

Description

@gamliela

Description

WebSocketConnection provides access to HandshakeRequest, which exposes useful information about the incoming HTTP request, such as headers.
However, it does not provide the remote IP address of the peer.

Access to the remote address is important for use cases such as rate limiting, auditing, and logging.

Implementation ideas

This should be a relatively straightforward change, as the remote address is already available in HandshakeRequestImpl but is not currently exposed via a public method.

Possible approaches:

  • Add a getRemoteAddress() method to HandshakeRequest.
  • Expose io.vertx.core.http.ServerWebSocket directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions