Canvas-Designer icon indicating copy to clipboard operation
Canvas-Designer copied to clipboard

Is it possible to display list of all connected users? Can we customize and allow the connecting user to put some friendly name.

Open creedrahul opened this issue 9 years ago • 1 comments

Right now when a new user is connected we get to see a random string which tells us if user is connected and collaborating. Can we have a method to allow the connecting user to put his/her name and show the list of all connected users.

creedrahul avatar Jan 07 '16 06:01 creedrahul

The demo file index.html is using RTCMultiConnection, which is having this API:

  • http://www.rtcmulticonnection.org/docs/extra/
connection.extra = {
    fullname: prompt('Please enter your full name', 'Anonymous');
};

Place above snippet before invoking connection.open or connection.join.

Here is how to access fullname:

connection.onopen = function(event) {
    alert('Connected with: ' + event.extra.fullname);
};

muaz-khan avatar Jan 07 '16 08:01 muaz-khan