socketIOGameServerClient top-level property
Implementation
final socketIOGameServerClient = Provider<ServerClient>(
(ref) {
final client = IOServerClient(
address: ref.watch(GameProviders.remoteUri),
ref: ref,
);
ref.onDispose(client.dispose);
return client;
},
name: 'socketIOGameServerClient',
dependencies: [GameProviders.remoteUri, GameProviders.connected.notifier],
);