Skip to content

Recommended way for client code that connects to many servers. #832

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

You must be logged in to vote

@schnabel Is the question how you write a wrapper class that combines the Socket.IO client instance and the event handlers all in the same class? I'm not sure I would do that myself, so I have no recommendation to make. But It is possible in Python to do this. You could add the client instance and the connection/disconnection methods to your namespace subclass, for example.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@schnabel
Comment options

@miguelgrinberg
Comment options

@schnabel
Comment options

@miguelgrinberg
Comment options

@schnabel
Comment options

Answer selected by schnabel
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