Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (30 loc) · 959 Bytes

README.rst

File metadata and controls

49 lines (30 loc) · 959 Bytes

Stupid WebSocket TCP Proxy (SWTP)

Description

A very stupid WebSocket server in order to proxy TCP connections (using websockets with unmodified TCP servers).

Don’t reinvent the wheel, use your existing tcp servers with this STUPID proxy.

It exposes an existing service over WebSocket, so a javascript application can communicate with desired service. It's necessary to use some implentation of the service protocol over WebSocket.

Requirements

Software pre-requisites:

  • python
  • twisted

Quick start

Linux:

$ cp config.ini.sample config.ini
$ twistd -n -y swtp.tac
$ xdg-open http://localhost:9091/examples/

Configuring

See config.ini.sample

Available Protocols

Stomp:
Provided by http://jmesnil.net/stomp-websocket/doc/

Writing a new protocol

TODO