mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Add initialization layer
This commit is contained in:
15
lib/helpers/websocket_helper.dart
Normal file
15
lib/helpers/websocket_helper.dart
Normal file
@ -0,0 +1,15 @@
|
||||
/// User web socket helper
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
|
||||
class WebSocketHelper {
|
||||
/// Check out whether we are currently connected to websocket or not
|
||||
static bool isConnected() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/// Connect to WebSocket
|
||||
static connect() async {
|
||||
if (isConnected()) return;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user