websocket - WebRTC Serverless DataChannel -


it lot's of fun if possible make text chat, room/channel url, domain.com/myroom. awesome if p2p , encrypted. though - webrtc datachannels, yeay!

it seem require server controls connections though, correct? there workarounds? backwards compability not concern here. wonder if problem multiple participant. webrtc seems 2 person thing.

sorry if seems should google answer, i've tried. there info, i'm confused... lots of outdated info , misunderstandings.

for initiate webrtc call, first client have send second 1 sdp (offer). includes mandatory informations communication (https://webrtchacks.com/sdp-anatomy/). second client have same (sdp answer). moreover, have exchange ice candidates (ip address, port, , transport protocol). after that, clients should able communicate in p2p encrypted media (datachannel).

but relaying info browser other, easiest way it, server. afaik, there isn't simple solutions browsers without server. note that, sometimes, p2p wont work (proxies, firewall, restrictive nats...), , may use turn server relaying media (but it's still encrypted).

a peerconnection defines p2p communication (2 clients). however, in webpage create several peerconnection.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -