public Task Handler(string scope, string cmd, string message)
        {
            if (ChannelGroup != null && ChannelGroup.Count > 0)
            {
                ChannelGroup.WriteAndFlushAsync(message, ChannelMatchers.All());
            }

            string connectionId         = Context.ConnectionId;
            ReplyContent <object> reply = new ReplyContent <object>
            {
                ConnectionId = Context.ConnectionId,
                Scope        = scope,
                Message      = message,
                Cmd          = "handler"
            };

            return(Clients.Caller.Send(reply));
        }
 public IChannelGroup Flush() => this.Flush(ChannelMatchers.All());
 public Task WriteAsync(object message) => this.WriteAsync(message, ChannelMatchers.All());
 public Task NewCloseFuture() => this.NewCloseFuture(ChannelMatchers.All());
 public Task DeregisterAsync() => this.DeregisterAsync(ChannelMatchers.All());
 public Task CloseAsync() => this.CloseAsync(ChannelMatchers.All());
 public Task DisconnectAsync() => this.DisconnectAsync(ChannelMatchers.All());