Skip to content

Room names, strings only? #2041

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

You must be logged in to vote

I've found what the issue is. You can use non-string objects as room names, as long as they are not list-like or tuple-like. When you pass a list or tuple, it is assume that you are passing a collection of rooms, so I'm treating each component as a room name. So using (0, 1) would send to rooms 0 and 1.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Tomaster134
Comment options

@miguelgrinberg
Comment options

@Tomaster134
Comment options

@miguelgrinberg
Comment options

Answer selected by Tomaster134
@Tomaster134
Comment options

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