Help with on connect event and parameters #1253
Answered
by
miguelgrinberg
AdolfoBanchio
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
miguelgrinberg
Oct 9, 2023
Replies: 1 comment 6 replies
-
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
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
AdolfoBanchio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:environ['QUERY_STRING']
environ['HTTP_PLAYER_ID']
andenviron['HTTP_GAME_ID']