Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
26 Views

chat-closed event ignored? (Javascript SDK)

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.

Tags (2)
0 Kudos
3 Replies
Highlighted
26 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
Highlighted
Beginner
26 Views

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

0 Kudos
Highlighted
26 Views

It will be released next week.

Thanks!

0 Kudos