connect static method

Create a new connection to a Lavalink server and wait for it to be ready.

Implementation

static Future<LavalinkConnection> connect(LavalinkClient client) async {
  final connection = LavalinkConnection._(client: client);
  await connection._readyCompleter.future;
  return connection;
}