public FleckWebSocketTransport(HostContext context, IJsonSerializer serializer) { _context = context; _serializer = serializer; _webSocketConnection = context.GetValue <IWebSocketConnection>("Fleck.IWebSocketConnection"); // Groups never come from the client Groups = Enumerable.Empty <string>(); }
public static bool SupportsWebSockets(this HostContext context) { return(context.GetValue <bool>("supportsWebSockets")); }
public static bool IsDebuggingEnabled(this HostContext context) { return(context.GetValue <bool>("debugMode")); }
public static string WebSocketServerUrl(this HostContext context) { return(context.GetValue <string>(HostConstants.WebSocketServerUrl)); }