routesMethod method
Keeps the @ExposeWs methods and the hooks of this controller, as
onConnect, off its HTTP routes.
Implementation
@override
bool routesMethod(ReflectedDeclaration declaration) =>
!_hooks.contains(declaration.name) &&
!(declaration.function?.annotations.any((a) => a.reflectee is ExposeWs) ??
false);