PhoenixLink constructor
PhoenixLink({
- required PhoenixSocket socket,
- required PhoenixChannel channel,
- ResponseParser parser = const ResponseParser(),
- RequestSerializer serializer = const RequestSerializer(),
Creates a new PhoenixLink using an established PhoenixChannel channel
.
You can use the static createChannel method to create a PhoenixChannel
from a websocket URI and optional parameters (e.g. for authentication)
Implementation
PhoenixLink({
required this.socket,
required this.channel,
ResponseParser parser = const ResponseParser(),
RequestSerializer serializer = const RequestSerializer(),
}) : _serializer = serializer,
_parser = parser;