π TCP-WS is a WebSocket TCP Redirector, implemented as an π asynchronous Python backend.
It relays incoming TCP data to all connected WebSocket clients.
- Real-time redirection of TCP data to WebSocket clients.
- Implemented as an π asynchronous Python backend.
- Dockerized setup for simplified deployment.
- Utilizes s6 process supervision for reliable service management.
TCP-WS operates by simultaneously listening for TCP and WebSocket connections. Upon connection from a TCP client and subsequent data transmission, the server forwards this data to all WebSocket clients currently connected, ensuring seamless communication between the two protocols.
By defaults the TCP port is 8080
and the Websocket port is 8765
.
To run TCP-WS, Docker and Docker Compose are recommended:
- Clone this repository:
git clone https://github.com/simone-desantis/tcp-ws.git
- Navigate to the project directory:
cd tcp-ws
- If needed, modify the
docker-compose.yml
file to suit your requirements. - Execute
docker-compose up -d
to initiate the service.
Contributions to TCP-WS are encouraged! Whether you encounter issues or have suggestions for enhancements, feel free to open an issue or submit a pull request.
Refer to the LICENSE file for more information.