Skip to content

koto/stupid-websocket-tcp-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A very stupid websocket tcp proxy (using websockets with unmodified TCP servers)

Resources

License

Stars

Watchers

Forks

Packages

No packages published