Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions app/lib/network/web_socket_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import 'dart:io';
import 'dart:math';
import 'dart:typed_data';

import 'package:flutter/cupertino.dart';

//Assume theseisYoucustomDepends on(according toActual situationAdjust)
import '../app_state.dart';
import '../model/msg_type.dart';
Expand Down Expand Up @@ -76,7 +74,6 @@ class WebSocketUtil {

//connectsuccesslog(ContainstimeandURL)
_isConnected = true;
final connectTime = DateTime.now().toString().split('.').first;

_subscription = _socket!.listen(
_handleMessage,
Expand All @@ -91,7 +88,6 @@ class WebSocketUtil {
} catch (e) {
_isConnected = false;
//connectfaillog(ContainsSpecificerrorinfo)
final errorTime = DateTime.now().toString().split('.').first;
_scheduleReconnect();
}
}
Expand All @@ -115,7 +111,6 @@ class WebSocketUtil {
void _handleDone() {
//connectcloselog(ContainscloseoriginalBecause)
_isConnected = false;
final closeTime = DateTime.now().toString().split('.').first;
_scheduleReconnect();
}

Expand Down
4 changes: 2 additions & 2 deletions app/lib/util/native_bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SPDX-License-Identifier: MIT

import 'dart:async';

import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';

class NativeBridge {
Expand Down Expand Up @@ -95,7 +94,8 @@ class NativeBridge {
try {
await _audioPlayChannel.send(pcmData);
} catch (e) {
}
// Ignore playback channel failures in fire-and-forget mode.
}
}
}

Expand Down