Closed achimnol closed 7 years ago
Cool, @achimnol have you got a pull request?
Ooops, I pointed the wrong stuff.
Sockets.route()
is working as expected, since the decorator just returns f
as-is and only calls add_url_rule()
as a side-effect.
The root cause of my problem was a missing entry in __all__
.
Sorry for bothering. 😞 (We should not write codes when sleepy..... 😪)
The original Flask framework uses
functools.update_wrapper()
for handler registration methods such as add_url_rule() so that docstrings, annotations, and other metadata of theapp.route()
-wrapped function becomes equivalent to those of the original user-defined handler function. To be consistent,Sockets.route()
orSockets.add_url_rule()
method should do this as well.