Package | Description |
---|---|
io.vertx.core.http | |
io.vertx.core.spi.metrics |
Modifier and Type | Method and Description |
---|---|
Future<ServerWebSocket> |
ServerWebSocketHandshake.accept()
Accept the WebSocket and terminate the WebSocket handshake.
|
Future<ServerWebSocket> |
HttpServerRequest.toWebSocket()
Like
HttpServerRequest.toWebSocket(Handler) but returns a Future of the asynchronous result |
Handler<ServerWebSocket> |
HttpServer.webSocketHandler() |
ReadStream<ServerWebSocket> |
HttpServer.webSocketStream()
Deprecated.
instead use
HttpServer.webSocketHandler(Handler) |
Modifier and Type | Method and Description |
---|---|
default void |
HttpServerRequest.toWebSocket(Handler<AsyncResult<ServerWebSocket>> handler)
Upgrade the connection of the current request to a WebSocket.
|
HttpServer |
HttpServer.webSocketHandler(Handler<ServerWebSocket> handler)
Set the WebSocket handler for the server to
wsHandler . |
Modifier and Type | Method and Description |
---|---|
default W |
HttpServerMetrics.connected(S socketMetric,
R requestMetric,
ServerWebSocket serverWebSocket)
Called when a server web socket connects.
|
Copyright © 2025 Eclipse. All rights reserved.