Create room without connecting (#49)
* initial commit * fix example compile * format * clean up * fix check * missing import
This commit is contained in:
+10
-2
@@ -11,10 +11,18 @@ class LiveKitClient {
|
||||
String url,
|
||||
String token, {
|
||||
ConnectOptions? options,
|
||||
}) =>
|
||||
Room.connect(
|
||||
}) async {
|
||||
final room = Room();
|
||||
try {
|
||||
await room.connect(
|
||||
url,
|
||||
token,
|
||||
options: options,
|
||||
);
|
||||
return room;
|
||||
} catch (error) {
|
||||
await room.dispose();
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user