|
|
|
|
|
by toomim
2187 days ago
|
|
You can create a WebRTC datachannel in any modern browser with just one line of javascript: channel = new RTCPeerConnection().createDataChannel("foo", {ordered: false})
Then you can read from it with: channel.onopen = () => { ... }
channel.onmessage = (event) => { ... }
This is widely supported in every modern browser. |
|