https://github.com/ringsnetwork/xrtc
https://github.com/ringsnetwork/xrtc
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ringsnetwork/xrtc
- Owner: RingsNetwork
- Created: 2023-08-07T03:50:22.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T09:40:19.000Z (almost 3 years ago)
- Last Synced: 2025-03-30T22:41:37.510Z (about 1 year ago)
- Language: Rust
- Size: 143 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# XRTC
It enables you to transmit TCP packages over WebRTC datachannel.
## Demo
```shell
# Run a simple http server on 8000 port
python -m http.server 8000
# Run a server node in another terminal
cargo run -- server
# Run a client node in another terminal
cargo run -- client --target 127.0.0.1:8000 --listen 127.0.0.1:5555
# Again, in another terminal, access the http server via proxy
# [client] -> [server] -> [http server]
curl http://127.0.0.1:5555
```