Package io.grpc.servlet.web.websocket
Class GrpcWebsocket
java.lang.Object
jakarta.websocket.Endpoint
io.grpc.servlet.web.websocket.GrpcWebsocket
public class GrpcWebsocket
extends jakarta.websocket.Endpoint
Supports multiple endpoints, based on the negotiated sub-protocol. If a protocol isn't supported, an error will be
sent to the client.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GrpcWebsocket
-
-
Method Details
-
onOpen
public void onOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig endpointConfig) - Specified by:
onOpen
in classjakarta.websocket.Endpoint
-
onClose
public void onClose(jakarta.websocket.Session session, jakarta.websocket.CloseReason closeReason) - Overrides:
onClose
in classjakarta.websocket.Endpoint
-
onError
- Overrides:
onError
in classjakarta.websocket.Endpoint
-