lib/pubnub/events/set_state.rb in pubnub-4.0.27 vs lib/pubnub/events/set_state.rb in pubnub-4.0.28
- old
+ new
@@ -1,10 +1,10 @@
# Toplevel Pubnub module.
module Pubnub
# Holds SetState functionality
class SetState < SingleEvent
- include Celluloid
+ include Concurrent::Async
include Pubnub::Validator::SetState
def initialize(options, app)
@event = :set_state
@telemetry_name = :l_pres
@@ -18,11 +18,11 @@
Pubnub::Constants::OPERATION_SET_STATE
end
def parameters(*_args)
parameters = super
- parameters.merge!(state: encode_parameter(@state))
- parameters.merge!('channel-group' => format_channel_group(@group).join(',')) unless @group.blank?
+ parameters[:state] = encode_parameter(@state)
+ parameters['channel-group'] = format_channel_group(@group).join(',') unless @group.blank?
parameters
end
def path
'/' + [