socketIOGameServerClient top-level property

Provider<ServerClient> socketIOGameServerClient
final

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],
);