Skip to content

Help with on connect event and parameters #1253

Discussion options

You must be logged in to vote

The connect event receives a dictionary with the request data, formatted according to the WSGI specification. It's unclear from your screenshot if you intend to pass the player and game ids as query string arguments or as custom headers, but all of this information is in the environ dictionary:

  • for the query string, use environ['QUERY_STRING']
  • for the headers use environ['HTTP_PLAYER_ID'] and environ['HTTP_GAME_ID']

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@AdolfoBanchio
Comment options

@miguelgrinberg
Comment options

@AdolfoBanchio
Comment options

@miguelgrinberg
Comment options

@AdolfoBanchio
Comment options

Answer selected by AdolfoBanchio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants