Skip to content

Instantly share code, notes, and snippets.

@jpatel531
Last active August 29, 2015 14:25
Show Gist options
  • Save jpatel531/95e0184a1e87e3d3e543 to your computer and use it in GitHub Desktop.
Save jpatel531/95e0184a1e87e3d3e543 to your computer and use it in GitHub Desktop.
Python Authenticate Private Channels
@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