如何处理抖动中的websocket错误

时间:2020-06-22 04:27:18

标签: node.js flutter websocket

我尝试在后端使用node.js,express和socket io进行实时聊天...然后我在客户端使用flutter ...问题是...我得到这样的错误:< / p>

D/FlutterSocketIoPlugin: SocketIO(22042): connect_error: [{"cause":{"detailMessage":"Expected HTTP 101 response but was \u0027404 Not Found\u0027","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"websocket error","stackTrace":[],"suppressedExceptions":[]}]
D/FlutterSocketIoPlugin: SocketIO(22042): reconnect_error: [{"cause":{"cause":{"detailMessage":"Expected HTTP 101 response but was \u0027404 Not Found\u0027","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"websocket error","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"Connection error","stackTrace":[],"suppressedExceptions":[]}]

我在这里想念什么吗?

0 个答案:

没有答案