public void Start(LiveWebSocketManager socketManager, CancellationToken ct = default(CancellationToken)) { _socketManager = socketManager; _subscriber = _redis.GetSubscriber(); _subscriber.Subscribe("shtik:messaging", HandleMessage); ct.Register(Cancel); }
public LiveWebSocketMiddleware(RequestDelegate next, LiveWebSocketManager sockets) { _next = next; _sockets = sockets; }