Open mynameismaxz opened 8 years ago
You can modify following demo for connection.send
and connection.onmessage
:
E.g.
connection.onmessage = function(event) {
var senderId = event.userid;
connection.getAllPartcipants().forEach(function(p) {
if (p == senderId) return;
connection.send(event.data, p);
});
};
I want to use scalable broadcast with text. How can I do it ?