bridge_dial2 function
Implementation
void bridge_dial2(List<String> args) async {
var env = DotEnv(includePlatformEnvironment: true)..load();
//recorderIp = env['HTTP_SERVER_ADDRESS']!;
//recorderPort = int.parse(env['HTTP_SERVER_PORT']!);
WebSocket ws = await client.connect();
client.on("StasisStart", (event, incoming) {
//print(event);
stasisStart(event, incoming);
});
ws.listen((event) {
var e = json.decode(event);
//print(e['type']);
client.emit(e);
// Function? func = app[e['type']];
// func!.call(e);
});
}