Skip to main content

Wamp Client for Django Channels

Project description


$ pip install django-wamp-client

Add channels and wampclient to your INSTALLED_APPS:


In your settings, configure your connection to the WAMP Router:

    'URL': "ws://",
    'AUTHID': 'authid',
    'AUTHSECRET': 'secret',
    'REALM': "realname",

Configure your routing to include wampclient.routing:

channel_routing = [
    route("wamp.join", "testproject.consumers.wamp_join"),

Start the channel workers:

$ ./ runworker

Start the client that will connect to the WAMP Router:

$ ./ wamp_client


from wampclient import publish, subscribe

def wamp_hello(greeting):
    publish('com.example.hello', "'sup?")

def wamp_join(message):
    # This consumer will be connected to the ``wamp.join`` channel
    subscribe('com.example.hello', wamp_hello)
    publish('com.example.hello', "Hi!", options={'exclude_me': False})


This software is released under the MIT License. See the LICENSE file.


This project should be considered a proof of concept.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-wamp-client-0.0.3.tar.gz (4.2 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page