Implements XEP-0085: Chat State Notifications.
Members
(static) toComposingNotificationDelay
Delay between two notification on the message composing
- Source:
Methods
(static) _genComposingMsg(the, usersComposing)
Generate composing message.
Parameters:
Name | Type | Description |
---|---|---|
the |
String | type of the chat ('groupchat' or 'chat') |
usersComposing |
Array | List of users which are currently composing a message |
- Source:
(static) endComposing(bid)
End composing without sending a pause event.
Parameters:
Name | Type | Description |
---|---|---|
bid |
String |
- Source:
(static) onActive(ev, jid)
Active event received.
Parameters:
Name | Type | Description |
---|---|---|
ev |
Event | |
jid |
String |
- Source:
(static) onComposing(ev, jid)
Composing event received. Display message.
Parameters:
Name | Type | Description |
---|---|---|
ev |
Event | |
jid |
String |
- Source:
(static) onPaused(ev, jid)
Pause event receive. Remove or update composing message.
Parameters:
Name | Type | Description |
---|---|---|
ev |
Event | |
jid |
String |
- Source:
(static) pauseComposing(bid)
Send pause event.
Parameters:
Name | Type | Description |
---|---|---|
bid |
String |
- Source:
(static) startComposing(bid)
Send composing event.
Parameters:
Name | Type | Description |
---|---|---|
bid |
String |
- Source: