SseScope class
The SseScope class is used to define the scope of a Server-Sent Events (SSE) gateway.
It contains the SseRouteSpec, the providers, and the hooks.
Constructors
-
SseScope(SseRouteHandlerSpec sseRouteSpec, Map<
Type, Provider> providers, Map<ValueToken, Object?> values, HooksContainer hooks, List<Metadata> metadata, Iterable<Middleware> middlewares(IncomingMessage request)) -
The GatewayScope constructor is used to create a new instance of the GatewayScope class.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hooks → HooksContainer
-
The hooks property contains the hooks of the WebSocket gateway.
final
-
metadata
→ List<
Metadata> -
The metadata property contains the metadata of the WebSocket gateway.
final
-
middlewares
→ Iterable<
Middleware> Function(IncomingMessage request) -
The middlewares property contains the middlewares of the WebSocket gateway.
final
-
providers
→ Map<
Type, Provider> -
The providers property contains the providers of the WebSocket gateway.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sseRouteSpec → SseRouteHandlerSpec
-
The
gatewayproperty contains the WebSocket gateway.final -
values
→ Map<
ValueToken, Object?> -
The values property contains the values from ValueProviders.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited