WebSocket Pub/Sub implementation on Python/Gevent.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
twister
README.md
setup.py

README.md

WORK IN PROGRESS.

What is WAMP?

WAMP is an open WebSocket subprotocol that provides two asynchronous messaging patterns: RPC and PubSub.

More information: http://wamp.ws/spec

Twister implements a subset (Pub/Sub) of WAMP.

Running

$ python -m twister
Twister running on 127.0.0.1:9000

Now you can interact with twister using twister.js

http://github.com/fatiherikli/twister.js

Example

var twister = new Twister("ws://localhost:9000/ws");
twister.connect(function () {
    twister.subscribe('articles/23', function (channel, message) {
        console.log(message);
    });

    twister.publish('articles/23', "Hello!");
});