websocket-tcp-relay
Version, currently 1.0.111 versions
github.com/cloudamqp/websocket-tcp-relay
Expose any TCP server as a WebSocket endpoint
45 stars
0 dependents
License: Apache-2.0
Nothing has been indexed for 1.0.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
websocket-tcp-relay:
github: cloudamqp/websocket-tcp-relay
version: ~> 1.0.1Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# WebSocket TCP Relay
WebSocket server that relay traffic to any TCP server. It also serves static files from `--webroot` directory.
## Installation
Debian/Ubuntu:
```bash
wget -qO- https://packagecloud.io/cloudamqp/websocket-tcp-relay/gpgkey | sudo gpg --dearmor -o /etc/apt/keyrings/cloudamqp-websocket-tcp-relay.gpg
echo "deb [signed-by=/etc/apt/keyrings/cloudamqp-websocket-tcp-relay.gpg] https://packagecloud.io/cloudamqp/websocket-tcp-relay/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/websocket-tcp-relay.list
sudo apt update
sudo apt install websocket-tcp-relay
```
Docker/Podman:
Docker images are published to [Docker Hub](https://hub.docker.com/r/cloudamqp/websocket-tcp-relay). Fetch and run the latest version with:
`docker run --rm -it -p 15670:15670 cloudamqp/websocket-tcp-relay --upstream tcp://container:5672`
## Usage
```
Usage: websocket-tcp-relay [arguments]
-u URI, --upstream=URI Upstream (eg. tcp://localhost:5672 or tls://127.0.0.1:5671)
-b HOST, --bind=HOST Address to bind to (default localhost)
-p PORT, --port=PORT Address to bind to (default 15670)
--tls-cert=PATH TLS certificate + chain (default ./certs/fullchain.pem)
--tls-key=PATH TLS certificate key (default ./certs/privkey.pem)
-P, --proxy-protocol If the upstream expects the PROXY protocol (default false)
-w PATH, --webroot=PATH Directory from which to serve static content (default ./webroot)
-c PATH, --config=PATH Config file
-v, --version Display version number
-h, --help Show this help
```
Example config file:
```ini
[main]
upstream = tcp://127.0.0.1:5672
bind = 127.0.0.1
port = 15670
proxy-protocol = false
webroot = /var/lib/wwwroot
tls-cert = /etc/ssl/certs/fullchain.pem
tls-key = /etc/ssl/private/privkey.pem
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.1- Tagged
- Jun 3, 2026
- Commit
3d5501a5da4e- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/cloudamqp/websocket-tcp-relay
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 11