wsEcho method

Route wsEcho (
  1. String path,
  2. {Map<String, String> pathRegEx,
  3. List<RouteInterceptor> after,
  4. List<RouteInterceptor> before,
  5. 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));
}