PhoenixLink class
A link for subscriptions (or also mutations/queries) over phoenix channels
Constructors
- PhoenixLink({required PhoenixSocket socket, required PhoenixChannel channel, ResponseParser parser = const ResponseParser(), RequestSerializer serializer = const RequestSerializer()})
-
Creates a new PhoenixLink using an established PhoenixChannel
channel
.
Properties
Methods
-
concat(
Link next) → Link -
Adds
next
after this linkinherited -
dispose(
) → Future< void> - Can be called to clean up resources
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
Request request, [NextLink? forward]) → Stream< Response> -
A function called when a request reaches this
Link
-
route(
LinkRouter route) → Link -
Route requests after this link
inherited
-
split(
bool test(Request request), Link left, [Link right = const PassthroughLink()]) → Link -
Split requests after this link
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromWebsocketUri(
{required String uri, Map< String, String> ? params}) → Future<PhoenixLink> - Creates a new phoenix socket from the given websocketUri, connects to it, and create a channel, and join it