Last active
August 29, 2015 14:25
-
-
Save jpatel531/95e0184a1e87e3d3e543 to your computer and use it in GitHub Desktop.
Python Authenticate Private Channels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route("/pusher/auth", methods=['POST']) | |
def authenticate_channel(): | |
socket_id = request.form['socket_id'] | |
channel = request.form['channel_name'] | |
auth = pusher.authenticate( | |
channel=channel_name, | |
socket_id=socket_id | |
) | |
return auth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment