Class WebSocketConnectionImpl
java.lang.Object
io.quarkus.websockets.next.runtime.WebSocketConnectionBase
io.quarkus.websockets.next.runtime.WebSocketConnectionImpl
- All Implemented Interfaces:
BlockingSender,Sender,WebSocketConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.websockets.next.WebSocketConnection
WebSocketConnection.BroadcastSender -
Field Summary
Fields inherited from class io.quarkus.websockets.next.runtime.WebSocketConnectionBase
codecs, creationTime, handshakeRequest, identifier, pathParams, trafficLogger -
Constructor Summary
ConstructorsConstructorDescriptionWebSocketConnectionImpl(String generatedEndpointClass, String endpointClass, io.vertx.core.http.ServerWebSocket webSocket, ConnectionManager connectionManager, Codecs codecs, io.vertx.ext.web.RoutingContext ctx, TrafficLogger trafficLogger) -
Method Summary
Methods inherited from class io.quarkus.websockets.next.runtime.WebSocketConnectionBase
close, close, closeReason, creationTime, handshakeRequest, id, isClosed, isSecure, pathParam, sendAutoPing, sendBinary, sendPing, sendPong, sendText, sendTextMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.websockets.next.BlockingSender
sendBinaryAndAwait, sendBinaryAndAwait, sendPingAndAwait, sendPongAndAwait, sendTextAndAwait, sendTextAndAwaitMethods inherited from interface io.quarkus.websockets.next.Sender
sendBinary, sendBinary, sendPing, sendPong, sendText, sendTextMethods inherited from interface io.quarkus.websockets.next.WebSocketConnection
close, close, closeAndAwait, closeAndAwait, closeReason, creationTime, handshakeRequest, id, isClosed, isOpen, isSecure, pathParam
-
Constructor Details
-
WebSocketConnectionImpl
WebSocketConnectionImpl(String generatedEndpointClass, String endpointClass, io.vertx.core.http.ServerWebSocket webSocket, ConnectionManager connectionManager, Codecs codecs, io.vertx.ext.web.RoutingContext ctx, TrafficLogger trafficLogger)
-
-
Method Details
-
webSocket
io.vertx.core.http.WebSocketBase webSocket()- Specified by:
webSocketin classWebSocketConnectionBase
-
endpointId
- Specified by:
endpointIdin interfaceWebSocketConnection- Returns:
- the endpoint id
- See Also:
-
broadcast
Description copied from interface:WebSocketConnectionSends messages to all open clients connected to the same WebSocket endpoint.- Specified by:
broadcastin interfaceWebSocketConnection- Overrides:
broadcastin classWebSocketConnectionBase- Returns:
- the broadcast sender
- See Also:
-
getOpenConnections
Description copied from interface:WebSocketConnectionThe returned set also includes the connection this method is called upon.- Specified by:
getOpenConnectionsin interfaceWebSocketConnection- Returns:
- the set of open connections to the same endpoint
-
subprotocol
- Specified by:
subprotocolin interfaceWebSocketConnection- Returns:
- the subprotocol selected by the handshake
-
toString
-
hashCode
public int hashCode() -
equals
-