iflychat.startChat
iFlyChat JavaScript SDK has a function named 'startChat' which can be used to start chat with a specific user or join a room. You may use the function in the following manner:
1
iflychat.startChat({
2
3
id: '1', /* id of the user or room with whom to start chat */
4
name: 'admin', /*name of the user or room with whom to start chat */
5
state: 'open' /* defines if chat needs to be started in open state or minimised state*/
6
7
});
Copied!
This function takes a JS object as paramter which should have following properties:
    id
    name
    state
Possible values of parameters :
    state: 'open' , 'minimised'
Last modified 1yr ago
Copy link