room JS Events
You can be notified when events occur in your <room> using our Javascript API. Below is a full list of the available events.How do I observe room events?
initialized
connected
publishing
publishing_stopped
new_stream
stream_left
disconnected
How do I observe room events?
You can observe a room's events at any time (even before you create it) by using the room's id and the CameraTag.observe method. Here is an example observing the 'MyRecorder1' publish event:CameraTag.observe('MyRoom1', 'connected', function(){ alert('You are connected to the room!') });