simplewebrtc/SimpleWebRTC

Custom create/join room parameters

Opened this issue · 1 comments

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 ?

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