|
|
@ -95,8 +95,7 @@ class WebSocketUtil {
|
|
|
|
onStart?.call();
|
|
|
|
onStart?.call();
|
|
|
|
_webSocket!.stream.listen(
|
|
|
|
_webSocket!.stream.listen(
|
|
|
|
(event) => webSocketReceiveMessage(event as String),
|
|
|
|
(event) => webSocketReceiveMessage(event as String),
|
|
|
|
onError: webSocketOnError,
|
|
|
|
onError: webSocketOnError, );
|
|
|
|
onDone: webSocketClosed);
|
|
|
|
|
|
|
|
initHeartBeat();
|
|
|
|
initHeartBeat();
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
BotToast.showText(text: 'webSocket连接失败');
|
|
|
|
BotToast.showText(text: 'webSocket连接失败');
|
|
|
|