Package io.grpc.servlet.web.websocket
Class WebSocketServerStream
java.lang.Object
jakarta.websocket.Endpoint
io.grpc.servlet.web.websocket.AbstractWebSocketServerStream
io.grpc.servlet.web.websocket.WebSocketServerStream
Each instance of this type represents a single active websocket, which maps to a single gRPC stream.
-
Field Summary
Fields inherited from class io.grpc.servlet.web.websocket.AbstractWebSocketServerStream
attributes, maxInboundMessageSize, streamTracerFactories, transportListener, websocketSession
-
Constructor Summary
ConstructorDescriptionWebSocketServerStream
(io.grpc.internal.ServerTransportListener transportListener, List<? extends io.grpc.ServerStreamTracer.Factory> streamTracerFactories, int maxInboundMessageSize, io.grpc.Attributes attributes) -
Method Summary
Methods inherited from class io.grpc.servlet.web.websocket.AbstractWebSocketServerStream
onOpen, readHeaders
Methods inherited from class jakarta.websocket.Endpoint
onClose
-
Field Details
-
GRPC_WEBSOCKETS_PROTOCOL
- See Also:
-
-
Constructor Details
-
WebSocketServerStream
public WebSocketServerStream(io.grpc.internal.ServerTransportListener transportListener, List<? extends io.grpc.ServerStreamTracer.Factory> streamTracerFactories, int maxInboundMessageSize, io.grpc.Attributes attributes)
-
-
Method Details
-
onMessage
- Specified by:
onMessage
in classAbstractWebSocketServerStream
-
onMessage
- Specified by:
onMessage
in classAbstractWebSocketServerStream
- Throws:
IOException
-
onError
- Overrides:
onError
in classjakarta.websocket.Endpoint
-