Message
Properties
channel: string;
Optional (alphanumeric) channel name
data: Map<string,Object>;
Data to be sent
source: string;
User key of the message sender
target: ListOrSingle<string>;
Target user or group. Can be either a string, an array of string or an object that contains an array of string. The 'target' property of the output message will have exactly the same form.
Source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
interface Message {
/**
* Optional (alphanumeric) channel name
*/
channel: string;
/**
* Data to be sent
*/
data: Map<string,Object>;
/**
* User key of the message sender
*/
source: string;
/**
* Target user or group. Can be either a string, an array of string or an object that contains an array of string. The 'target' property of the output message will have exactly the same form.
*/
target: ListOrSingle<string>;
}