Use this method for scalable-broadcast demos
connection.onNumberOfBroadcastViewersUpdated = function(event) { console.log('Number of broadcast (', event.broadcastId, ') viewers', event.numberOfBroadcastViewers); };
Please check this demo: demos/Scalable-Broadcast.html