Functions
- onopen(e)
Event on websocket open
- onmessage(e)
Event on chat message
- onlogin(e)
Event on user login
- onlogout(e)
Event on user logout
- queueInterval([data], [callback]) ⇒
string
Set queue execution interval
If data and callback === undefined returns queue interval
- chat([data], [callback]) ⇒
string
Set chat id
If data and callback === undefined returns chat id
- username([data], [callback]) ⇒
string
Set username
If data and callback === undefined returns username
- password(data, [callback])
Set password
- login([callback])
Login
- logout([callback])
Logout
- message(data, [callback])
Send message
- privateMessage(user, message, callback)
Send private message to user
- queueAdd(type, [data], [callback])
Add chatadelic act to queue
onopen(e)
Event on websocket open
Kind: global function
Param | Type | Description |
---|
e | Object | event |
onmessage(e)
Event on chat message
Kind: global function
Param | Type | Description |
---|
e | Object | event |
onlogin(e)
Event on user login
Kind: global function
Param | Type | Description |
---|
e | Object | event |
onlogout(e)
Event on user logout
Kind: global function
Param | Type | Description |
---|
e | Object | event |
queueInterval([data], [callback]) ⇒ string
Set queue execution interval
If data and callback === undefined returns queue interval
Kind: global function
Returns: string
- username
Param | Type |
---|
[data] | string |
[callback] | function |
chat([data], [callback]) ⇒ string
Set chat id
If data and callback === undefined returns chat id
Kind: global function
Returns: string
- username
Param | Type |
---|
[data] | string |
[callback] | function |
username([data], [callback]) ⇒ string
Set username
If data and callback === undefined returns username
Kind: global function
Returns: string
- username
Param | Type |
---|
[data] | string |
[callback] | function |
password(data, [callback])
Set password
Kind: global function
Param | Type |
---|
data | string |
[callback] | function |
login([callback])
Login
Kind: global function
Param | Type |
---|
[callback] | function |
logout([callback])
Logout
Kind: global function
Param | Type |
---|
[callback] | function |
message(data, [callback])
Send message
Kind: global function
Param | Type |
---|
data | string |
[callback] | function |
privateMessage(user, message, callback)
Send private message to user
Kind: global function
queueAdd(type, [data], [callback])
Add chatadelic act to queue
Kind: global function
Access: public
Param | Type |
---|
type | string |
[data] | string |
[callback] | function |