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.