iFlyChat
Home
GitHub
Dashboard
Search…
iFlyChat
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
Help
General
Embedded Chatroom
Feature Description
Chat Moderation
Powered By
GitBook
Quickstart
This Quickstart guide will help you get started with our JavaScript chat SDK quickly!
iFlyChat provides its JavaScript SDK which can be used to customize the chat and bind to various chat related events.
You may bind to our
init
event by using the following code:
1
window
.
iflychatAsyncInit
=
function
()
{
2
3
// All iFlyChat related code should be defined here
4
5
/** iFlyChat Init function **/
6
7
iflychat
.
init
({
8
9
userlist
:
{
10
visible
:
true
11
}
12
13
});
14
15
/** iFlyChat ready event **/
16
iflychat
.
on
(
'ready'
,
function
()
{
17
18
// Write your custom iFlyChat related code here
19
20
});
21
22
};
Copied!
It is fired when the chat starts initializing.
You should be using a
premium plan
in order to be able to use this feature.
API Reference - Previous
Retrieve Thread History
Next - JavaScript SDK
Custom Label In Chat Window
Last modified
2yr ago
Copy link