Skip to content

WebSocket Pub/Sub implementation on Python/Gevent.

Notifications You must be signed in to change notification settings

modulexcite/twister

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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!");
});

About

WebSocket Pub/Sub implementation on Python/Gevent.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%