【发布时间】:2019-11-16 03:11:15
【问题描述】:
好的,Flutter 在食谱中有 WebSocket 配方 (here)。这对 websocket.org 测试服务器非常有效。
问题是我想连接我自己的 WebSocket 服务器。所以我首先使用了 SpringBoot 中的this tutorial。
尝试从应用程序(我在这里使用模拟器)向 Spring Boot 后端发出请求无效。然后我开始修补并从 Spring Boot 后端删除 STOMP,并留下一个简单的 WebSocket 传递字符串。它在使用邮递员甚至网页时有效,但在应用程序中无效
当前状态在这个 GitHub 上(包括 spring boot 和 flutter 项目):https://github.com/Flavsditz/websocket_sandbox
这里有人有什么建议吗?
我很感激!
【问题讨论】:
标签: spring-boot flutter websocket