删除日志
This commit is contained in:
parent
d8b1656c50
commit
a2b0576594
@ -90,7 +90,6 @@ class WKWebConnectionManager {
|
||||
}
|
||||
if (isLogout) {
|
||||
// _isLogout = true;
|
||||
print("-------------- disconnect $isLogout");
|
||||
WKIM.shared.options.uid = '';
|
||||
WKIM.shared.options.token = '';
|
||||
WKIM.shared.messageManager.updateSendingMsgFail();
|
||||
@ -110,11 +109,9 @@ class WKWebConnectionManager {
|
||||
var addrs = addr.split(":");
|
||||
var host = addrs[0];
|
||||
var port = addrs[1];
|
||||
print("-------------------------- _socketConnect 1");
|
||||
io.Socket.connect(host, int.parse(port),
|
||||
timeout: const Duration(seconds: 5))
|
||||
.then((socket) {
|
||||
print("-------------------------- _socketConnect 2 socket: $socket");
|
||||
_socket = MyWKSocket.newSocket(socket);
|
||||
_connectSuccess();
|
||||
}).catchError((err) {
|
||||
@ -250,7 +247,6 @@ class WKWebConnectionManager {
|
||||
} catch (e) {
|
||||
Logs.error(e.toString());
|
||||
}
|
||||
|
||||
_startHeartTimer();
|
||||
_startCheckNetworkTimer();
|
||||
} else {
|
||||
@ -323,10 +319,7 @@ class WKWebConnectionManager {
|
||||
|
||||
_sendPacket(Packet packet) async {
|
||||
var data = WKIM.shared.options.proto.encode(packet);
|
||||
print("---------->>> send message data: $data");
|
||||
print("---------->>> send message isReconnection $isReconnection");
|
||||
if (!isReconnection) {
|
||||
print("---------->>> send message isReconnection _socket:$_socket");
|
||||
await _socket?.send(data);
|
||||
}
|
||||
}
|
||||
|
@ -51,9 +51,7 @@ class MyWKSocket implements MyWkSocketBase {
|
||||
@override
|
||||
send(Uint8List data) {
|
||||
try {
|
||||
print("----- _socket : $_socket");
|
||||
if (_socket != null) {
|
||||
print("----- _socket send");
|
||||
_socket?.add(data); // 使用安全调用操作符
|
||||
}
|
||||
} catch (e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user