Class WebSocketClientEndpoint
java.lang.Object
jakarta.websocket.Endpoint
net.finmath.smartcontract.valuation.service.websocket.client.WebSocketClientEndpoint
public class WebSocketClientEndpoint
extends jakarta.websocket.Endpoint
Client End point for demo purposes, currently just printing the text messages on console
- Author:
- Peter Kohl-Landgraf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable
<String> jakarta.websocket.Session
void
onClose
(jakarta.websocket.Session userSession, jakarta.websocket.CloseReason reason) void
onOpen
(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) void
sendTextMessage
(String message) Methods inherited from class jakarta.websocket.Endpoint
onError
-
Constructor Details
-
WebSocketClientEndpoint
-
-
Method Details
-
getUserSession
public jakarta.websocket.Session getUserSession() -
asObservable
-
sendTextMessage
- Throws:
IOException
-
onOpen
public void onOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) - Specified by:
onOpen
in classjakarta.websocket.Endpoint
-
onClose
public void onClose(jakarta.websocket.Session userSession, jakarta.websocket.CloseReason reason) - Overrides:
onClose
in classjakarta.websocket.Endpoint
-