An example for using WebRTC to communicate between a JavaScript client and a C++ server.
C++ C Other
Switch branches/tags
Nothing to show
Clone or download
Latest commit 28f355f Sep 19, 2017
Permalink
Failed to load latest commit information.
client Fix blog post link. Mar 15, 2017
server Fix blog post link. Mar 15, 2017
.gitignore First draft of the example code. Mar 15, 2017
LICENSE Add license. Sep 19, 2017
README.md Fix blog post link. Mar 15, 2017

README.md

Client-Server WebRTC Example

This implements a minimal example with a client written in JavaScript that communicates with a server written in C++ using WebRTC over unordered and unreliable SCTP. While more involved to set up than WebSockets, this has the same advantage of lower latency that UDP has in real-time applications.

This repo is meant to accompany my blog post on WebRTC web games, so head there for explanation and setup instructions.

The example depends on websocketpp and rapidjson.

You can contact me at brian@brkho.com.