A very stupid websocket tcp proxy (using websockets with unmodified TCP servers)
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit behind iuridiniz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
public
.gitignore
LICENSE.BSD
README.rst
config.ini.sample
swtp.tac

README.rst

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