Package org.yamcs.http.websocket
Class ConnectedWebSocketClient
java.lang.Object
org.yamcs.ConnectedClient
org.yamcs.http.websocket.ConnectedWebSocketClient
Runs on the server side and oversees the life cycle of a client web socket connection. Combines multiple types of
subscriptions to keep them bundled as one client session.
-
Constructor Summary
ConstructorDescriptionConnectedWebSocketClient
(User user, String applicationName, String address, Processor processor, LegacyWebSocketFrameHandler wsHandler) -
Method Summary
Modifier and TypeMethodDescription<T extends com.google.protobuf.Message>
voidsendData
(Yamcs.ProtoDataType dataType, T data) void
sendReply
(WebSocketReply reply) void
setProcessor
(Processor newProcessor) Select or change the processor for this client.void
Methods inherited from class org.yamcs.ConnectedClient
getAddress, getApplicationName, getId, getLoginTime, getProcessor, getUser, processorQuit, setClientId
-
Constructor Details
-
ConnectedWebSocketClient
public ConnectedWebSocketClient(User user, String applicationName, String address, Processor processor, LegacyWebSocketFrameHandler wsHandler)
-
-
Method Details
-
setProcessor
Description copied from class:ConnectedClient
Select or change the processor for this client.- Overrides:
setProcessor
in classConnectedClient
- Parameters:
newProcessor
- the processor to select- Throws:
ProcessorException
-
sendReply
-
sendData
-
socketClosed
public void socketClosed()
-