neeh / client-server-webrtc-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:C++ 98.0%Language:C 1.6%Language:JavaScript 0.3%Language:CMake 0.1%Language:HTML 0.0%