All Projects → paullouisageneau → datachannel-wasm

paullouisageneau / datachannel-wasm

Licence: MIT license
C++ WebRTC Data Channels and WebSockets for WebAssembly in browsers

Programming Languages

C++
36643 projects - #6 most used programming language
javascript
184084 projects - #8 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to datachannel-wasm

node-datachannel
Easy to use WebRTC data channels and media transport. libdatachannel node bindings.
Stars: ✭ 135 (+75.32%)
Mutual labels:  peer-to-peer, datachannel, libdatachannel
WiFi-Direct-File-Transfer-App
WiFi Direct File Transfer is a experimental app that will allow sharing of data between Android devices running Android 4.0 or higher using a WiFi direct connection without the use of a WiFi access point. This will enable data transfer between devices without relying on any existing network infrastructure
Stars: ✭ 88 (+14.29%)
Mutual labels:  peer-to-peer
em-onscripter
An emscripten port of onscripter-jh
Stars: ✭ 26 (-66.23%)
Mutual labels:  emscripten
ParsecSoda
Parsec Soda is a custom open-source game streaming app that integrates with Parsec API and is focused in Host experience.
Stars: ✭ 135 (+75.32%)
Mutual labels:  peer-to-peer
PyPPSPP
Python implementation of Peer-to-Peer Streaming Peer Protocol (PPSPP) [RFC7574]
Stars: ✭ 18 (-76.62%)
Mutual labels:  peer-to-peer
Peer2PeerTube
A live video streaming 💻 platform based on peer-to-peer architecture.
Stars: ✭ 27 (-64.94%)
Mutual labels:  peer-to-peer
vrEmuLcd
Character LCD emulator library (C99 engine, web front-end).
Stars: ✭ 45 (-41.56%)
Mutual labels:  emscripten
noita-tools
A collection of tools for Nolla's Noita that help get insight into seeds and find ones with special constraints.
Stars: ✭ 22 (-71.43%)
Mutual labels:  emscripten
AECforWebAssembly
A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.
Stars: ✭ 15 (-80.52%)
Mutual labels:  emscripten
pea2pea
A simple, low-level, and customizable implementation of a TCP P2P node.
Stars: ✭ 31 (-59.74%)
Mutual labels:  peer-to-peer
network-monorepo
Monorepo containing all the main components of Streamr Network.
Stars: ✭ 223 (+189.61%)
Mutual labels:  peer-to-peer
school21
Как подготовиться к бассйну Школы 21: изучаем терминал, vim, работаем с gcc, norminette, git, пишем первую программу на Си.
Stars: ✭ 41 (-46.75%)
Mutual labels:  peer-to-peer
gon2n
Go bindings, management daemons and CLIs for n2n edges and supernodes.
Stars: ✭ 67 (-12.99%)
Mutual labels:  peer-to-peer
TrackCOVID
An open source project which provides privacy-preserving contact tracing for communities using QR codes
Stars: ✭ 23 (-70.13%)
Mutual labels:  peer-to-peer
haveno
Decentralized P2P exchange built on Monero and Tor
Stars: ✭ 542 (+603.9%)
Mutual labels:  peer-to-peer
addon-zerotier
ZeroTier One - Home Assistant Community Add-ons
Stars: ✭ 103 (+33.77%)
Mutual labels:  peer-to-peer
stockfish.js
The strong open source chess engine Stockfish compiled to JavaScript and WebAssembly using Emscripten
Stars: ✭ 140 (+81.82%)
Mutual labels:  emscripten
gba.ninja
A port of visualboyadvance-m to JavaScript and a custom frontend
Stars: ✭ 69 (-10.39%)
Mutual labels:  emscripten
WebAssembly-WebGL-2
A simple port of the "Getting started with GLFW3" code to valid code for Emscripten compilation
Stars: ✭ 65 (-15.58%)
Mutual labels:  emscripten
nvim
Repository for the Tandem NeoVim Plugin
Stars: ✭ 23 (-70.13%)
Mutual labels:  peer-to-peer

datachannel-wasm - C++ WebRTC Data Channels for WebAssembly in browsers

License: MIT Gitter Discord

datachannel-wasm is a C++ WebRTC Data Channels and WebSocket wrapper for Emscripten compatible with libdatachannel.

datachannel-wasm exposes the same API as libdatachannel, and therefore allows to compile the same C++ code using Data Channels and WebSockets to WebAssembly for browsers in addition to native targets supported by libdatachannel. The interface is only a subset of the one of libdatachannel, in particular, tracks and media transport are not supported. See what is available in wasm/include.

These wrappers were originally written for my multiplayer game Convergence and were extracted from there to be easily reusable.

datachannel-wasm is licensed under MIT, see LICENSE.

Installation

You just need to add datachannel-wasm as a submodule in your Emscripten project:

$ git submodule add https://github.com/paullouisageneau/datachannel-wasm.git deps/datachannel-wasm
$ git submodule update --init --recursive

CMakeLists.txt:

[...]
add_subdirectory(deps/datachannel-wasm EXCLUDE_FROM_ALL)
target_link_libraries(YOUR_TARGET datachannel-wasm)

Since datachannel-wasm is compatible with libdatachannel, you can easily leverage both to make the same C++ code compile to native (including Apple macOS and Microsoft Windows):

$ git submodule add https://github.com/paullouisageneau/datachannel-wasm.git deps/datachannel-wasm
$ git submodule add https://github.com/paullouisageneau/libdatachannel.git deps/libdatachannel
$ git submodule update --init --recursive --depth 1

CMakeLists.txt:

if(CMAKE_SYSTEM_NAME MATCHES "Emscripten")
    add_subdirectory(deps/datachannel-wasm EXCLUDE_FROM_ALL)
    target_link_libraries(YOUR_TARGET datachannel-wasm)
else()
    option(NO_MEDIA "Disable media support in libdatachannel" ON)
    add_subdirectory(deps/libdatachannel EXCLUDE_FROM_ALL)
    target_link_libraries(YOUR_TARGET datachannel)
endif()

Building

Building requires that you have emsdk installed and activated in your environment:

$ cmake -B build -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
$ cd build
$ make -j2
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].