routesMethod method

  1. @override
bool routesMethod(
  1. ReflectedDeclaration declaration
)

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);