Skip to content

Python-SocketIO >= 5.7.0 rejecting connections to namespaces created via external processes using Redis message broker #975

Answered by miguelgrinberg
Ghidra3x7 asked this question in Q&A
Discussion options

You must be logged in to vote

Version 5.7. introduces a change with regards to accepting connections. Because of an unintended omission, previous versions accepted connections from any namespaces. In 5.7 (practically 5.7.1) by default only connections from known namespaces are accepted. Known namespaces are the default namespace / and any namespaces for which there are event handlers. If you want to accept connections from other namespaces you have two options:

  • Add a connect handler for any of the namespaces that you want to accept
  • Use the namespaces argument to provide the list of namespaces you'd like to accept. If you pass namespaces='*' all namespaces will be accepted, which is the unintended behavior of 5.6 and …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ghidra3x7
Comment options

Answer selected by Ghidra3x7
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
Converted from issue

This discussion was converted from issue #974 on July 21, 2022 10:01.