lib/ringcentral_sdk/subscription.rb in ringcentral_sdk-0.5.0 vs lib/ringcentral_sdk/subscription.rb in ringcentral_sdk-0.5.1
- old
+ new
@@ -240,10 +240,12 @@
return is_encrypted
end
def _unsubscribe_at_pubnub()
if @_pubnub && alive?()
- @_pubnub.unsubscribe(@_subscription['deliveryMode']['address'])
+ @_pubnub.unsubscribe(channel: @_subscription['deliveryMode']['address']) do |envelope|
+ # puts envelope.message
+ end
end
end
def _set_timeout()
time_to_expiration = @_subscription['expiresIn'] - RENEW_HANDICAP
\ No newline at end of file