iFlyChat
HomeGitHubDashboard
Search
⌃K
Links
iFlyChat
Search
⌃K
Documentation
Installation
WordPress
Embed Chatroom in WordPress Post
Disable Popup Chat
Hide Popup Chat from a Page
Embed Inbox View
View Chat Logs
Guest User Access
Show/Hide Popup Chat On Specific Pages
WordPress Filters and Hooks
API Reference
Create a new chat room
Retrieve list of all chat rooms
Edit a chat room
Retrieve list of all online users
Kick a user from the chat
Retrieve list of all users online in a chat room
Delete a chat room
Retrieve Thread History
JavaScript SDK
Quickstart
Custom Label In Chat Window
User Chat Button Widget
Reference
message receive
message send
user list update
connect
disconnect
ready
iflychat.startChat
iflychat.closeChat
iflychat.minimiseChat
iflychat.init
iflychat.setStatus
iflychat.sound
iflychat.openAdminDashboard
current user status update
current user sound update
iflychat.renderLabelInChatWindow
Help
General
Embedded Chatroom
Feature Description
Chat Moderation
Powered By GitBook

iflychat.setStatus

iFlyChat JavaScript SDK has a function named 'setStatus' which can be used to set the status of current user. You may use the function in the following manner:
iflychat.setStatus({
status: '1' /*status which needs to be set */
​
});
This function takes a JS object as paramter which should have following properties:
  • status
Possible values of status are :
  • '1' - Available
  • '2' - Idle
  • '3' - Busy
  • '4' - Sign Out
Previous
iflychat.init
Next
iflychat.sound
Last modified 2yr ago
Copy link