AndroidFayeClient.WebsocketHandler.Unsubscribe C# (CSharp) Method

Unsubscribe() public method

public Unsubscribe ( string channel ) : void
channel string
return void
        public override void Unsubscribe(string channel)
        {
            if (!IsConnected) {
                throw new InvalidOperationException("WebSocket not connected or bayeux session not initialized");
            }
            Send(new { channel = "/meta/unsubscribe", subscription = channel });
        }