new cmd()
command message
Returns:
message:object
Methods
set(options)
Building command message
Example
let message = New Message('cmd', id); message.set({to: 'user1', action: 'jitter', chatType: 'singleChat', success: function(){}, fail: function(){}})
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | -
Properties
|
Returns:
Void