Comments (5)
收到的关闭帧没有包含状态码,那么就认为其状态码是 1005。可能是服务端哪个地方在几秒后发送了关闭。okhttp3.5之后就没有了onPong的回调了
from wsmanager.
同样的代码用okhttp提供的地址ws://echo.websocket.org正常工作,因为没有onpong所以不知道回应了什么,看okhttp源码,像是pong了bin内容
from wsmanager.
弱弱的问下 现在是okhttp Mockserver会自动挂载后台的service嘛?? 还是需要自己手动写一个service去保证一直在后台连接?
from wsmanager.
应訪是要手动service去连接,我只是简单试用,没有深入研究
from wsmanager.
心跳包是自动发送还是需要自己定时发送。
from wsmanager.
Related Issues (18)
- 断线重连无效 HOT 1
- WSManager does not reconnect after connectivity change. HOT 1
- 请问一下是不是真机会连不上
- 断线重连有个问题
- aaaaaaa
- sendMessage方法连续调用了两次的问题 HOT 1
- 如何自定义ping包的内容呢
- 带参数怎么不行呢
- okhttp client 建立以后如何修改心跳间隔呢?
- 手动断开连接的时候报错 HOT 1
- 心跳包 HOT 1
- 项目刚好用上了。 HOT 1
- 建议不要在框架层强制使用UI线程来处理回调和建立连接 HOT 1
- 设置心跳包报错 HOT 2
- 断线重连可以设置间隔时间吗 HOT 1
- 服务器报500 HOT 2
- 支持wss HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsmanager.