WebRTC Poker Game - Part 6: WebRTC

1 · Richard To · April 18, 2021, midnight
WebRTC is used for adding video/audio streaming to the players sitting at the poker table. Simple Peer over PeerJS Simple Peer is used for the WebRTC connections. I chose this library over PeerJS since the latter adds some custom behavior on top of WebRTC. In addition PeerJS seems to rely on running a PeerJS server (though I did not verify this). Nothing wrong with that, but since I wanted to write my WebSocket game server in Go, I didn’t want to run a separate server just for signaling. The nic...