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
- setQueueInterval(data, callback) ⇒
ChatadelicApi
- getQueueInterval() ⇒
number
- setChat(data, callback) ⇒
ChatadelicApi
- getChat() ⇒
number
- setUsername(data, callback) ⇒
ChatadelicApi
- getUsername() ⇒
string
- setPassword(data, callback) ⇒
ChatadelicApi
- getPassword() ⇒
string
DO NOT return password
- init(callback)
Init chatadelcic session
- 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
- getOnline() ⇒
Array
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 |
setQueueInterval(data, callback) ⇒ ChatadelicApi
Kind: global function
Returns: ChatadelicApi
- Returns this to chain methods
Param | Type | Description |
---|
data | number | Queue execution interval |
callback | function | |
getQueueInterval() ⇒ number
Kind: global function
Returns: number
- Queue execution interval
setChat(data, callback) ⇒ ChatadelicApi
Kind: global function
Returns: ChatadelicApi
- Returns this to chain methods
Param | Type | Description |
---|
data | number | Chat id |
callback | function | |
getChat() ⇒ number
Kind: global function
Returns: number
- Chat id
setUsername(data, callback) ⇒ ChatadelicApi
Kind: global function
Returns: ChatadelicApi
- Returns this to chain methods
Param | Type | Description |
---|
data | string | Username |
callback | function | |
getUsername() ⇒ string
Kind: global function
Returns: string
- Username
setPassword(data, callback) ⇒ ChatadelicApi
Kind: global function
Returns: ChatadelicApi
- Returns this to chain methods
Param | Type | Description |
---|
data | string | Password |
callback | function | |
getPassword() ⇒ string
DO NOT return password
Kind: global function
Returns: string
- Empty string
init(callback)
Init chatadelcic session
Kind: global 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 |
getOnline() ⇒ Array
Kind: global function
Returns: Array
- Online list