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.