muaz-khan / Canvas-Designer

Collaborative, extendable, JavaScript Canvas2D drawing tool, supports dozens of builtin tools, as well as generates JavaScript code for 2D animations.
https://www.webrtc-experiment.com/Canvas-Designer/
MIT License
371 stars 171 forks source link

I am trying to disconnect a single user using the user-id of the user. How can i do this???? #13

Open creedrahul opened 8 years ago

creedrahul commented 8 years ago

I went through your document on rtcmulticonnect.js i am trying to eject a particular user using the connection.eject but i get errors currently i am using rtcMulticonnect-v3.js and i use socket.io for signalling purpose. If i replace it with rtcmulticonnect i start getting errors for firebase connection.

muaz-khan commented 8 years ago

You can use connection.disconnectWith method. E.g.

connection.disconnectWith('remote-userid');

RTCMultiConnection-v3.0 API Reference: https://github.com/muaz-khan/RTCMultiConnection#api