Skip to content

Created a websocket with Flask-io and gevent whenever sent a request to server it open and closes the connection immediately #1821

Discussion options

You must be logged in to vote

Start by initializing the extension in a single place. If you want to use a direct initialization, then pass all your arguments to the SocketIO() constructor. If you prefer the two-step initialization, then initialize SocketIO() with no arguments, and pass all your arguments to init_app().

Replies: 1 comment 6 replies

Comment options

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

@Mr-Dj-Python
Comment options

@miguelgrinberg
Comment options

@Mr-Dj-Python
Comment options

@Mr-Dj-Python
Comment options

Answer selected by Mr-Dj-Python
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