connect method
Establishes a web-socket connection for the given AdapterRequest.
The provided callback
will be invoked with a RelicWebSocket that
allows sending and receiving messages the web-socket connection.
request
: The AdapterRequest for which to establish the connection.callback
: The WebSocketCallback that will be invoked on inbound connection requests.
Implementation
@override
Future<void> connect(
covariant final IOAdapterRequest request,
final WebSocketCallback callback,
) async {
callback(await IORelicWebSocket.fromHttpRequest(request._httpRequest));
}