Skip to content

Commit 2c4be65

Browse files
chore(flutter-example): add config id to api call (#133)
1 parent 7a8e03d commit 2c4be65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

evi-flutter-example/lib/main.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ class _MyHomePageState extends State<MyHomePage> {
228228
throw Exception('Please set your Hume API credentials in main.dart');
229229
}
230230

231+
if (ConfigManager.instance.humeConfigId.isNotEmpty) {
232+
uri += "&config_id=${ConfigManager.instance.humeConfigId}";
233+
}
234+
231235
_chatChannel = WebSocketChannel.connect(Uri.parse(uri));
232236

233237
_chatChannel!.stream.listen(

0 commit comments

Comments
 (0)