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