Search in sources :

Example 6 with WebSocketRequest

use of org.yamcs.api.ws.WebSocketRequest in project yamcs-studio by yamcs.

the class TimeCatalogue method onYamcsConnected.

@Override
public void onYamcsConnected() {
    YamcsClient yamcsClient = YamcsPlugin.getYamcsClient();
    yamcsClient.subscribe(new WebSocketRequest("time", "subscribe"), this);
    distributeTime(TimeEncoding.INVALID_INSTANT);
}
Also used : YamcsClient(org.yamcs.studio.core.client.YamcsClient) WebSocketRequest(org.yamcs.api.ws.WebSocketRequest)

Aggregations

WebSocketRequest (org.yamcs.api.ws.WebSocketRequest)6 YamcsClient (org.yamcs.studio.core.client.YamcsClient)6