heroku-python / flask-sockets

[DEPRECATED] Alternative: https://github.com/miguelgrinberg/flask-sock
MIT License
1.74k stars 167 forks source link

TypeError: register() takes 3 positional arguments but 4 were given #83

Open AlbinDavid opened 3 years ago

AlbinDavid commented 3 years ago

When running the main I'm facing this TypeError.The source of the error is while registering the sockets in blueprint

app.register_blueprint(html, url_prefix=r'/')
sockets.register_blueprint(ws, url_prefix=r'/')

app.register_blueprint seems to be working fine.

nmz787 commented 3 years ago

same issue here

nmz787 commented 3 years ago

got past the issue with this change, from: blueprint.register(self, options, first_registration)

to: blueprint.register(self, options)

not sure if that will break anytime though, as my application is completely new and I've never used this package before

thewanghao commented 3 years ago

you can run: pip install --upgrade 'flask==1.1.2'