TCP / README.md
euler314's picture
Upload 4 files
66a180a verified
|
Raw
History Blame Contribute Delete
682 Bytes
---
title: Sound Transport Relay
emoji: "๐Ÿ”Š"
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
---
# Sound Transport Relay (HF)
This Space runs a simple WebSocket relay at `/ws`. Clients should connect with:
```json
{"role":"sender","code":"123456789"}
```
or
```json
{"role":"receiver","code":"123456789"}
```
After both sides connect with the same code, the relay forwards all text/binary
messages both directions.
Notes
- HF free Spaces can sleep when idle; the first connection after sleep will have
a cold-start delay.
- This relay does not authenticate or validate passwords. Your app should handle
authentication and encryption end-to-end.