Community Actions Channel
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | |
services |
Object | |
emit |
function |
Returns:
- Type
- function
Methods
(inner) addChatMessageReaction(params) → {Object}
add a reaction to a chat message
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
published reaction
- Type
- Object
(inner) editChatMessage(params) → {Object}
edit a chat message
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
updated message
- Type
- Object
(inner) listUsersByMessageReaction(params) → {Array}
list users who reacted to the provided message
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
list of users
- Type
- Array
(inner) off(params) → {Object}
un-subscribe to realtime state changes
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
initial state
- Type
- Object
(inner) on(params) → {Object}
subscribe to realtime state changes
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
initial state
- Type
- Object
(inner) publishChatMessage(params) → {Object}
publish a chat message to a room
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
published message
- Type
- Object
(inner) removeChatMessage(params) → {Object}
remove a chat message
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
removed message
- Type
- Object
(inner) removeChatMessageReaction(params) → {Object}
remove to a chat message reaction
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
removed reaction
- Type
- Object
(inner) replyToChatMessage(params) → {Object}
reply to a chat message
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
published message
- Type
- Object
(inner) searchChatGifs(params) → {Array}
search available chat gifs
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
list of gifs
- Type
- Array
(inner) setNotificationAsRead(params) → {Object}
set a notification as read
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
updated notification
- Type
- Object