3 ms·
I like this book, but it doesn't contain any code examples, so it wasn't useful to me. I ended up adopting code from the High Performance Browser Networking bo
by adhamsalama 2y ago
I like this book, but it doesn't contain any code examples, so it wasn't useful to me.
I ended up adopting code from the High Performance Browser Networking book and some code examples by Google that were written like 8 years ago. It was painful to replace the outdated APIs with new ones and rewrite in TypeScript, but I eventually did it.
https://github.com/adhamsalama/webrtc/ https://github.com/adhamsalama/webrtc/
Then I used it with WebAssembly to run a distributed SQLite database in the browser for peer-to-peer collaboration.
https://github.com/adhamsalama/sqlite-wasm-webrtc https://github.com/adhamsalama/sqlite-wasm-webrtc
Probably the coolest projects I have ever done, and they contain almost no backend code at all (I am a backend dev).
- Sean-Der 2y agoI’m glad you had fun with WebRTC. It’s super cool tech. If you are ever back in WebRTC land would loved to help https://pion.ly/discord https://pion.ly/discord The book is vendor agnostic. I wanted it to be timeless and vendor agnostic. The lack of code made all publishers I approached reject it :( I would love to see a hard copy someday. I had hoped if I put no code in it the WebRTC community would feel more comfortable with it. If I made it Pion specific, would greatly reduce its reach.
- adhamsalama 2y agoCan I ask what you mean by vendor agnostic? Don't the WebRTC APIs exist in all browsers?
- Sean-Der 2y agoYou have multiple implementations (Go, Python/Typescript) and servers (Janus/Jitsi) I was afraid if I pushed any software in particular it would dissuade other groups from using it
- adhamsalama 2y agoI just wrote it using the browser APIs and a small signaling server using WebSockets. That's it.