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

current user status update

iFlyChat JavaScript SDK fires an event named 'current-user-status-update' whenever status of current user is update. You may bind to this event in following manner:
iflychat.on('current-user-status-update', function(message) {
/* your code here - message object contains status information */
​
});
Here message is a JS object with following properties:
  • id
  • status
Possible values of status:
  • '1' - Available
  • '2' - Idle
  • '3' - Busy
  • '4' - Sign Out
Previous
iflychat.openAdminDashboard
Next
current user sound update
Last modified 2yr ago
Copy link