javascript - WebRTC sending string messages -


I want to realize a simple application in HTML / Javascript.

Two pages must be:

Pages 1.html and page 2.html. Page 1 should have a text box and a button. When pressing a button it should be sent to page 2, which it has to display

I have found this example and hosted it:

(This Works with a websocket that connects to the Ruby program running on the same server.

Please give me a simple solution for how to send text messages from one page to another. Thanks.

Thank you very much.

There is a good day:)

Then you Assuming that to set up WebRTC for audio and video, the answer is very small, you use the WebRTC Data Channel on any "peer connection" used for audio and video Will happen. A good example is to show how to send the wire. To send structured messages in JSON, you should be able to use it, in major browsers, there is JSON.parse , which works with the conversion in the object.

But you probably want to know how it works, in a little bit more detail than the non-configurable instance of the work, even if it resolves your problem something about it What is a Tu-date lecture and how it can be used. The nature of your work is used in reliable mode - do not you want to reach or reach your message, is not it a chance to reach the right place? the rest is up to you.

However, I strongly recommend that you look at it and understand that the web is designed for RTC.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -