initial commit with cache support & example
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user