magnusp / pusherinteraction

Twisted interaction with Pusher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pusherinteraction

Twisted interaction with Pusher

Prerequisites

pip install -r requirements.txt

Running

Expose the following environment variables

  • PUSHER_KEY
  • PUSHER_SECRET
  • PUSHER_APPID

Invoke

python pusherinteraction.py

Telnet to port 8023 on probably any interface. The telnet interface responds to the following lines and interacts accordingly with Pusher:

  • sub
    • Subscribes to the private channel 'pusherinteraction'.
  • pub
    • Publishes a message to 'pusherinteraction'.
  • disco
    • Disconnects the websocket client.

The interaction can be observed in the Pusher debug panel.

About

Twisted interaction with Pusher


Languages

Language:Python 100.0%