Skip to main content

WebSocketConsoleCommandModule

A class in Root.Township, Alta.Console.

Console module websocket: lets a websocket console client list and subscribe to console events.

Constructors​

MemberWhat it is
WebSocketConsoleCommandModule()Creates a WebSocketConsoleCommandModule with default values.

Methods​

MemberWhat it is
static WebSocketCommandHandler.SubscriptionResult Subscribe(string eventType)websocket subscribe: subscribes the calling websocket to an event type. Throws if not called over websocket.
static IEnumerable<IConsoleEvent> Subscriptions()websocket subscriptions: lists all registered console events.
static WebSocketCommandHandler.SubscriptionResult Unsubscribe(string eventType)websocket unsubscribe: unsubscribes the calling websocket from an event type. Throws if not called over websocket.