コード例 #1
0
        public object Subscribe(string channel)
        {
            var ip       = GetClientIP();
            var clientId = clientService.AddClient(ip);

            clientService.AddSubscriber(clientId, channel);
            broker.Subscribe(channel, clientId);

            return(Ok(clientId));
        }