ajax[]
Torus.io.ajax = function ( method , post , callback ) {
| |
---|---|
Make an AJAX request to the chat API. | |
Arguments |
|
Return value | undefined .
|
Time complexity | O(n) for params in post .
|
getPrivateId[]
Torus.io.getPrivateId = function ( users , callback ) {
| |
---|---|
Get the room id for a private room containing the specified users. | |
Arguments |
|
Return value | undefined .
|
Time complexity | O(1) |
getBlockedPrivate[]
Torus.io.getBlockedPrivate = function ( callback ) {
| |
---|---|
Get the list of users you have blocked and users who have blocked you. | |
Arguments |
|
Return value | undefined .
|
Time complexity | O(1) |
block[]
Torus.io.block = function ( user , callback ) {
| |
---|---|
Block a user from private chatting with you. | |
Arguments |
|
Return value | undefined .
|
Time complexity | O(1) |
unblock[]
Torus.io.unblock = function ( user , callback ) {
| |
---|---|
Unblock a user from private chatting with you. | |
Arguments |
|
Return value | undefined .
|
Time complexity | O(1) |