public void unsubscribe ( String channel ) { ChannelSubscription subscribedChannel = subscribedChannels . get ( channel ) ; if ( isUnsubscribeValid ( channel , subscribedChannel ) ) { subscribedChannel . setSubscribeOnReconnected ( false ) ; unsubscribe ( channel , true , subscribedChannel . isWithNotification ( ) ) ; } //subscribedChannels.remove(channel); }
Stop receiving messages in the specified channel