• Stars
    star
    262
  • Rank 152,958 (Top 4 %)
  • Language
    C++
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An example for using WebRTC to communicate between a JavaScript client and a C++ server.

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 [email protected].