Open johnuarez opened 3 years ago
you can add a little code to the react app (front end) and call will execute automatically.
What I've done is that I make a random nickname, assign it as nickname, set it inside the store, and after 5 seconds, I call this.handleSubmit() function which makes the call.
the code is (inside src/client/components/Media.tsx):
const randomNick = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); this.setState({ nickname: randomNick }) setTimeout(()=>{ this.handleSubmit() }, 5000)
Also I've remove (and is a hack since I don't know typescript very well) argument of handle submit, so handlesubmit accepts no argument.
and the last thing is to comment event.preventDefault() line because you didn't pass event anymore.
That's a hack which makes my program work. I hope this helps you too.
Dear Team,
i'm a big fan of your application. We are builiding an queuing-system around your App.
Is there a possibility to change the App in the way that it opens chatrooms with a browser request. For example if there is the request: https://peercalls.com/call/123 And the channel isn't already existing, it should be opened automaticly by the app.
Could you give me a hind how to make it? That would be great.
Thank you very much!
Regards,
John