initial commit with cache support & example

This commit is contained in:
Kingkor Roy Tirtho
2022-02-07 00:11:15 +06:00
commit c7169b04c7
65 changed files with 7155 additions and 0 deletions
@@ -0,0 +1,13 @@
import 'package:fl_query/src/links/websocket_link/websocket_client.dart';
import 'package:web_socket_channel/web_socket_channel.dart';
Future<WebSocketChannel> defaultConnectPlatform(
Uri uri, Iterable<String>? protocols,
{Map<String, dynamic>? 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();
}