Class: AMF::Messages::CommandMessage

Inherits:
AsyncMessage show all
Defined in:
lib/amf/messages.rb

Overview

Maps to flex.messaging.messages.CommandMessage

Constant Summary collapse

SUBSCRIBE_OPERATION =
0
UNSUSBSCRIBE_OPERATION =
1
POLL_OPERATION =
2
CLIENT_SYNC_OPERATION =
4
CLIENT_PING_OPERATION =
5
CLUSTER_REQUEST_OPERATION =
7
LOGIN_OPERATION =
8
LOGOUT_OPERATION =
9
SESSION_INVALIDATE_OPERATION =
10
MULTI_SUBSCRIBE_OPERATION =
11
DISCONNECT_OPERATION =
12
UNKNOWN_OPERATION =
10000

Instance Attribute Summary collapse

Attributes inherited from AsyncMessage

#correlation_id

Attributes inherited from AbstractMessage

#body, #client_id, #headers, #message_id, #time_to_live, #timestamp

Instance Method Summary collapse

Methods inherited from AbstractMessage

#to_amf

Constructor Details

#initializeCommandMessage

Returns a new instance of CommandMessage.



78
79
80
# File 'lib/amf/messages.rb', line 78

def initialize
  @operation = UNKNOWN_OPERATION
end

Instance Attribute Details

#operationObject

Returns the value of attribute operation.



76
77
78
# File 'lib/amf/messages.rb', line 76

def operation
  @operation
end