ExposeWs class

Marks a method as available to WebSockets, and not as an HTTP route.

The method is found through the app's Reflector, so it needs one that can reflect upon the controller, such as a StaticReflector of the data angel3_container_generator generates for it; one of a base controller is found if the reflector describes the base class too. Without one, register the handler with WebSocketController.exposeWs instead.

Constructors

ExposeWs(String eventName)
const

Properties

eventName → String
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited