WebHook to WebSocket bridge
  • Rust 76.1%
  • Shell 13.6%
  • JavaScript 7.1%
  • Dockerfile 3.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-05 20:11:05 +01:00
src Rust implementation 2026-11-05 17:55:42 +01:00
test_client Rust implementation 2026-11-05 17:55:42 +01:00
.gitignore Rust implementation 2026-11-05 17:55:42 +01:00
build-container.sh Docker 2026-11-05 19:23:16 +01:00
Cargo.lock Rust implementation 2026-11-05 17:55:42 +01:00
Cargo.toml Rust implementation 2026-11-05 17:55:42 +01:00
docker-compose.yml Docker 2026-11-05 19:23:16 +01:00
Dockerfile Optimize Docker image 2026-11-05 20:11:05 +01:00
README.md Create README.md 2026-11-05 19:48:55 +01:00

Webhook to Websocket bridge

This bridge lets you listen to JSON WebHooks over a WebSocket on the same URL.

Example

  1. You can either run the executable directly or use docker compose up.
  2. Connect your WebSocket to ws://localhost:8080/my-personal-webhook.
  3. Then, trigger the WebHook at http://localhost:8080/my-personal-webhook:
curl -X POST -H 'Content-Type: application/json' -d '{"foo":"bar!", "baz": 42}' http://localhost:8080/my-personal-webhook

Resonite

Since Resonite does not support JSON parsing natively yet, WebSockets connecting with a Resonite User Agent will receive the same data in a key-value URL-escaped encoding:

JSON Resonite
{"foo":"bar?!", "baz": 42} baz=42
foo=bar%3F!
[1,"two",3] 1
two
3