我在从 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
当我从应用程序向网络发送消息时没有问题出现,但是当网络消息传递到应用程序时出现此错误。请帮帮我。