JSDoc: Namespace: chatState

# Namespace: chatState

## jsxc.xmpp.chatState

Implements XEP-0085: Chat State Notifications.

Source:
  - jsxc.lib.xmpp.chatState.js, line 1
See:
  - http://xmpp.org/extensions/xep-0085.html

### Members

#### (static) toComposingNotificationDelay

Delay between two notification on the message composing

Source:
  - jsxc.lib.xmpp.chatState.js, line 11

### 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:
  - jsxc.lib.xmpp.chatState.js, line 199

#### (static) endComposing(bid)

End composing without sending a pause event.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String |

Source:
  - jsxc.lib.xmpp.chatState.js, line 184

#### (static) onActive(ev, jid)

Active event received.

##### Parameters:

Name | Type | Description
--- | --- | ---
`ev` | Event |
`jid` | String |

Source:
  - jsxc.lib.xmpp.chatState.js, line 127

#### (static) onComposing(ev, jid)

Composing event received. Display message.

##### Parameters:

Name | Type | Description
--- | --- | ---
`ev` | Event |
`jid` | String |

Source:
  - jsxc.lib.xmpp.chatState.js, line 48

#### (static) onPaused(ev, jid)

Pause event receive. Remove or update composing message.

##### Parameters:

Name | Type | Description
--- | --- | ---
`ev` | Event |
`jid` | String |

Source:
  - jsxc.lib.xmpp.chatState.js, line 88

#### (static) pauseComposing(bid)

Send pause event.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String |

Source:
  - jsxc.lib.xmpp.chatState.js, line 170

#### (static) startComposing(bid)

Send composing event.

##### Parameters:

Name | Type | Description
--- | --- | ---
`bid` | String |

Source:
  - jsxc.lib.xmpp.chatState.js, line 137