Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

chat-closed event ignored? (Javascript SDK)

David_T_2
Beginner
441 Views

Hi there,

If I make a webRTC call between two browsers, but the sender then decides to end the call BEFORE the remote user answers it, I can see that a "chat-closed" event is raised, but how do I receive that callback?  The Javascript console shows:

INFO: Received woogeen message. 

and within this message from the sender is a "chat-closed" event.  No other event fires to at his point.

So, how can I get the SDK to notify me that the sender has decided to cancel the call?  I know its not documented, but I tried the following anyway (but it didn't work, obviously!):

        p2p.on('chat-closed',function(e){  // Received a close call
          console.log("chat has been closed.");
        });
        
        p2p.addEventListener("chat-closed", function (evt){ 
            console.log("chat has been closed.");
        });    

Thanks in advance for your help.

0 Kudos
3 Replies
Chunbo_H_Intel1
Employee
441 Views

Hi David,

Thanks for the reporting. This is a known issue. We will release the fix in v3.2. Stay tuned!

Thanks!

0 Kudos
David_T_2
Beginner
441 Views

Ah great!  When is v3.2 due to rollout?

0 Kudos
Chunbo_H_Intel1
Employee
441 Views

It will be released next week.

Thanks!

0 Kudos
Reply