Search in sources :

Example 1 with YamcsPlugin

use of org.yamcs.studio.core.YamcsPlugin in project yamcs-studio by yamcs.

the class YamcsClient method onMessage.

@Override
public void onMessage(WebSocketSubscriptionData data) {
    // Stop processing messages on shutdown
    YamcsPlugin plugin = YamcsPlugin.getDefault();
    if (plugin == null) {
        return;
    }
    subscribers.forEach(s -> s.onMessage(data));
}
Also used : YamcsPlugin(org.yamcs.studio.core.YamcsPlugin)

Aggregations

YamcsPlugin (org.yamcs.studio.core.YamcsPlugin)1