import 'package:fl_query/src/links/websocket_link/websocket_client.dart'; import 'package:web_socket_channel/web_socket_channel.dart'; Future defaultConnectPlatform( Uri uri, Iterable? protocols, {Map? headers}) async { if (headers != null) { print("The headers on the web are not supported"); } final webSocketChannel = await WebSocketChannel.connect(uri, protocols: protocols); return webSocketChannel.forGraphQL(); }