Skip to content

Commit

Permalink
Merge branch 'main' into 57-fullscreen-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyboer authored Nov 25, 2020
2 parents 364bed8 + 9d598c1 commit 146c4de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/connect/meeting/main_websocket/main_websocket.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:bbb_app/src/connect/meeting/main_websocket/chat/chat.dart';
import 'package:bbb_app/src/connect/meeting/main_websocket/meeting/meeting.dart';
Expand Down Expand Up @@ -87,7 +88,7 @@ class MainWebSocket {
moduleEntry.value.onDisconnectBeforeWebsocketClose();
}

_webSocket.close();
_webSocket.closeWithReason(WebSocketStatus.goingAway);

// Call logout URL
await http.get(_meetingInfo.logoutUrl, headers: {
Expand Down
1 change: 1 addition & 0 deletions lib/src/connect/meeting/main_websocket/user/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class UserModule extends Module {

@override
void onConnected() {
subscribe("current-user");
subscribe("users");
}

Expand Down
5 changes: 5 additions & 0 deletions lib/src/utils/websocket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ class SimpleWebSocket {
if (_socket != null) _socket.close(WebSocketStatus.normalClosure);
}

closeWithReason(int reason) {
if (_socket != null) _socket.close(reason);
}


Future<WebSocket> _connectForSelfSignedCert(
String url, {
String cookie,
Expand Down

0 comments on commit 146c4de

Please sign in to comment.