connect static method

OpenRGBSyncClient connect({
  1. String host = '127.0.0.1',
  2. int port = 6742,
  3. String? clientName,
})

First function to call to connect to the server.

Implementation

static OpenRGBSyncClient connect({
  String host = '127.0.0.1',
  int port = 6742,
  String? clientName,
}) {
  final socket = RawSynchronousSocket.connectSync(host, port);
  final client = OpenRGBSyncClient._(socket);
  client._doHandshake(clientName);
  return client;
}