0

我在从 web 端接收到 android 应用程序的消息时收到此错误:

socket disconnected
12-23 16:43:53.435 31934-31934/io.smooch.demoapp E/WebSocketClient: WebSocket Error!
12-23 16:43:53.435 31934-31934/io.smooch.demoapp E/WebSocketClient: java.io.EOFException
12-23 16:43:53.435 31934-31934/io.smooch.demoapp E/WebSocketClient: at java.io.DataInputStream.readByte(DataInputStream.java:77)
12-23 16:43:53.435 31934-31934/io.smooch.demoapp E/WebSocketClient: at com.saulpower.fayeclient.d.a(Unknown Source)
12-23 16:43:53.435 31934-31934/io.smooch.demoapp E/WebSocketClient: at com.saulpower.fayeclient.f.run(Unknown Source)
12-23 16:43:53.435 31934-31934/io.smooch.demoapp E/WebSocketClient: at java.lang.Thread.run(Thread.java:841)
12-23 16:43:53.436 31934-32043/io.smooch.demoapp I/WebSocketClient: socket closed

12-23 17:12:05.224 26644-26644/io.smooch.demoapp E/WebSocketClient: org.apache.http.HttpException: Received no reply from server.
    12-23 17:12:05.224 26644-26644/io.smooch.demoapp E/WebSocketClient: at com.saulpower.fayeclient.f.run(Unknown Source)
    12-23 17:12:05.224 26644-26644/io.smooch.demoapp E/WebSocketClient: at java.lang.Thread.run(Thread.java:841)
    12-23 17:12:05.225 26644-26709/io.smooch.demoapp I/WebSocketClient: socket closed

我已使用以下方式初始化 SDK:Smooch.init(this, "4sxxxxxxxxxxxxxxxxxxx");

并开始活动。ConversationActivity当我从应用程序向网络发送消息时没有问题出现,但是当网络消息传递到应用程序时出现此错误。请帮帮我。

4

1 回答 1

0

当网络套接字由于手机进入睡眠等原因而关闭时,就会发生此类错误。

它不应该以任何负面的方式影响应用程序。

于 2016-02-01T21:34:19.120 回答