[英]Unable to connect using Stomp client from Mobile Native Android / iOS app Using ws or wss
Unable to connect using Stomp client from Mobile Native Android / iOS app Using ws or wss from Using ws or wss.无法使用来自 Mobile Native Android / iOS 应用程序的 Stomp 客户端使用 ws 或 wss 从使用 ws 或 wss 进行连接。
Gives following Error:给出以下错误:
"Websocket: onClosed : Expected HTTP 101 response but was '200 'Response{protocol=http/1.1, code=200, message=, url= https://myURL/ }" “Websocket:onClosed:预期的 HTTP 101 响应,但为 '200'响应{protocol=http/1.1, code=200, message=, url= https://myURL/ }”
Working fine when try to connect open network server.尝试连接开放网络服务器时工作正常。
But unable to connect ngnix configured server.但是无法连接ngnix配置的服务器。 Where Socket connected successfully from Web/ Web view.从 Web/Web 视图成功连接 Socket 的地方。
It's not a real problem.这不是一个真正的问题。 The server tells you it try to elevate HTTP request in as WebSocket request.服务器告诉您它尝试将 HTTP 请求提升为 WebSocket 请求。
My project is still a work in progress, but I think it could be useful as case study.我的项目仍在进行中,但我认为它作为案例研究很有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.