RTCMultiConnection Docs

RTCMultiConnection.onUserStatusChanged | "event"

HOME © Muaz Khan . @WebRTCWeb . Github . Latest issues . What's New?

"connection.onUserStatusChanged" event allows you detect who gone offline; or who just joined the room. i.e. online/offline statuses from all those users who joined you; or users who was/were/are connected with you.

"onUserStatusChanged" event requires RTCMultiConnection >= v3.

An event object is passed over "onUserStatusChanged":

connection.onUserStatusChanged = function(event) {
    var isOnline = event.status === 'online';
    var isOffline = event.status === 'offline';

    var targetUserId = event.userid;
    var targetUserExtraInfo = event.extra;

Latest Issues

Want to ask a Question?

You can include your email for private conversation!

Latest Updates