pusher / pusher-http-python

Pusher Channels HTTP API library for Python
https://pusher.com/docs/server_api_guide
MIT License
375 stars 112 forks source link

How do I bind to Requests #192

Closed imdigitalashish closed 1 year ago

imdigitalashish commented 1 year ago

Hey, I wanted to know, How can I bind to these requests in python... like we listen in js... how do we listen in the python side?

benw-pusher commented 1 year ago

Channels libraries are divided into 2 categories:

Client Client libraries predominantly consume messages using a WebSocket interface. Think of them as subscribers , although it’s possible to publish messages using Client Events. Server Server libraries publish messages, request information using our HTTP API, authenticate users, authorize users, and handle Webhook calls. Think of them as publishers, although it’s possible to subscribe to messages using Client Event Webhooks.

This python library is a server library and so it isn't possible to bind to requests as you are looking to do. We do have some community libraries available which includes a Python client library which may help you here.