lib/pubnub/events/subscribe.rb in pubnub-3.7.5 vs lib/pubnub/events/subscribe.rb in pubnub-3.7.7
- old
+ new
@@ -10,9 +10,11 @@
super
@event = 'subscribe'
@allow_multiple_channels = true
@state = options[:state]
+ @wildcard_channel = @channel.select{ |e| e.index('.*') } || []
+ @channel -= @wildcard_channel
end
def fire(app)
app.update_timetoken(0)
add_state(@state, app) if @state