simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.64k stars 1.2k forks source link

Custom create/join room parameters #725

Open RPethani opened 5 years ago

RPethani commented 5 years ago

Current create room and join room functions accepts just string parameter and uses it as room name.

What if I want to create room with object of user details and send same to signal master. So, I can do some validations out there. Like wether user can create/join room or not. Also, I would like to store user details at server side.

Will I have to completely ignore inbuilt createRoom/joinRoom functions and implement my own ? If that is the case, will I have to do anything extra at "SimpleWebRTC" side ?

JakeTrock commented 5 years ago

please resolve this issue if this answers your question, but I think that you would be much better off exchanging data after a room is joined with the sendmessagetoall command: https://pastebin.com/3m4BvwGG