1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can join & leave the call

This commit is contained in:
2020-04-20 13:24:40 +02:00
parent da641515fa
commit 391d3150dd
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,15 @@
import 'package:comunic/helpers/websocket_helper.dart';
/// Calls helper
///
/// @author Pierre Hubert
class CallsHelper {
/// Join a call
static Future<void> join(int convID) async =>
ws("calls/join", {"convID": convID});
/// Leave a call
static Future<void> leave(int convID) async =>
ws("calls/leave", {"convID": convID});
}