Constructor
new Message(action, data)
- Source:
create new action
Parameters:
Name | Type | Default | Description |
---|---|---|---|
action |
string | ||
data |
object | null |
null
|
Methods
getAction() → {string}
- Source:
get action message key
Returns:
- Type
- string
getData() → {Object|null}
- Source:
get message data
Returns:
- Type
- Object | null
hasData() → {boolean}
- Source:
checks if message contains data
Returns:
- Type
- boolean