File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
packages/stream_video/lib/src Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import '../../webrtc/peer_connection.dart';
3232import '../../webrtc/rtc_manager.dart' ;
3333import '../../webrtc/rtc_manager_factory.dart' ;
3434import '../../webrtc/sdp/editor/sdp_editor.dart' ;
35+ import '../../ws/ws.dart' ;
3536import '../state/call_state_notifier.dart' ;
3637import 'call_session_config.dart' ;
3738
@@ -256,7 +257,9 @@ class CallSession extends Disposable {
256257 _eventsSubscription = null ;
257258 await _statsSubscription? .cancel ();
258259 _statsSubscription = null ;
259- await sfuWS.disconnect ();
260+ await sfuWS.disconnect (
261+ StreamWebSocketCloseCode .closeSocketFromClient.value,
262+ );
260263 await rtcManager? .dispose ();
261264 rtcManager = null ;
262265 _peerConnectionCheckTimer? .cancel ();
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ class StreamPeerConnection extends Disposable {
277277 ..onAddStream = null
278278 ..onRemoveStream = null
279279 ..onAddTrack = null
280+ ..onTrack = null
280281 ..onRemoveTrack = null
281282 ..onIceCandidate = null
282283 ..onIceConnectionState = null
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ import 'connect/connect.dart'
1313
1414export 'package:web_socket_channel/web_socket_channel.dart' ;
1515
16+ enum StreamWebSocketCloseCode {
17+ closeSocketFromClient (1000 );
18+
19+ const StreamWebSocketCloseCode (this .value);
20+ final int value;
21+ }
22+
1623/// A simple wrapper around [WebSocketChannel] to make it easier to use.
1724abstract class StreamWebSocket {
1825 /// Creates a new instance of [StreamWebSocket] .
You can’t perform that action at this time.
0 commit comments