heroku-python / flask-sockets

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

blueprint demo issue #55

Open JackyChou opened 6 years ago

JackyChou commented 6 years ago

I found that blueprint demo in Readme register like

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

actually this usage will got 404.

Maybe register like this is better

app.register_blueprint(html)
sockets.register_blueprint(ws)

or

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

Thank you for your time.

dragonwt commented 6 years ago

great ! please change example ,I have work all night until i find this.