wsEcho method
Route
wsEcho(
- String path, {
- Map<
String, String> ? pathRegEx, - List<
RouteInterceptor> ? after, - List<
RouteInterceptor> ? before, - List<
ExceptionHandler> ? onException,
Example: server.wsEcho('/ws');
Implementation
Route wsEcho(String path,
{Map<String, String>? pathRegEx,
List<RouteInterceptor>? after,
List<RouteInterceptor>? before,
List<ExceptionHandler>? onException}) {
return addRoute(Route.get(path, ws.wsEcho(),
pathRegEx: pathRegEx,
before: before,
after: after,
onException: onException));
}