Re:Play Counter-Strike 1.6 in your browser
by strbean on Friday June 12, 2020 @01:05PM
(#23501294)
It's been awhile since I took a crack at WebRTC. Do you still need to go through all the peer negotiation even when you are just trying to get to a known server?
[ Parent
| on HN ]
Yes, you still have to go through the negotiation. I put together a tutorial for a minimal Node.js Server + Browser Clients example a while back:
https://www.marksort.com/udp-like-networking-in-the-browser/
Re:Play Counter-Strike 1.6 in your browser
by strbean on Saturday June 13, 2020 @12:18AM
(#23506700)
Bleh! I was really hoping they would have smoothed that out by now. I just want a damn UDP socket to my server!
I guess it's easier to piggyback on the security model of the P2P handshake than work out a separate model for client-server communication.
I built a pair of libraries for a nodejs<->browser DataChannel, it was a nightmare at the time though, and I'm sure totally obsolete by now.
Given how long it took for us to get %*@!$ data channels, I guess we'll get a simpler way to connect to a regular server in... 2030? (I watched WebRTC very closely from the Ericsson prototype was released... for awhile I was contemplating trying to pass data in the audio or video streams -_-)