WebsocketRoute constructor

WebsocketRoute({
  1. required List<RequestMethod> requestMethods,
  2. required String path,
  3. required WebsocketHandler webSocketHandler,
  4. List<MiddlewareHandler> middlewares = const [],
})

Implementation

WebsocketRoute(
    {required List<RequestMethod> requestMethods,
    required String path,
    required this.webSocketHandler,
    List<MiddlewareHandler> middlewares = const []})
    : super(
          requestMethods: requestMethods,
          path: path,
          middlewares: middlewares);