lib/pubnub/events/set_state.rb in pubnub-4.0.1 vs lib/pubnub/events/set_state.rb in pubnub-4.0.3
- old
+ new
@@ -51,11 +51,11 @@
event: @event,
event_options: @given_options,
timetoken: nil,
status: {
code: req_res_objects[:response].code,
- operation: Pubnub::Constants::OPERATION_PUBLISH,
+ operation: Pubnub::Constants::OPERATION_SET_STATE,
client_request: req_res_objects[:request],
server_response: req_res_objects[:response],
data: nil,
category: Pubnub::Constants::STATUS_ACK,
error: false,
@@ -76,10 +76,10 @@
event: @event,
event_options: @given_options,
timetoken: nil,
status: {
code: req_res_objects[:response].code,
- operation: Pubnub::Constants::OPERATION_HEARTBEAT,
+ operation: Pubnub::Constants::OPERATION_SET_STATE,
client_request: req_res_objects[:request],
server_response: req_res_objects[:response],
data: nil,
category: (error ? Pubnub::Constants::STATUS_NON_JSON_RESPONSE : Pubnub::Constants::STATUS_ERROR),
error: true,