Giter VIP home page Giter VIP logo

wsmanager's People

Contributors

rabtman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wsmanager's Issues

设置心跳包报错

你好,设置了pingInterval,onFailure报错:Server-sent frames must not be masked.
请问这个是什么问题,要怎么处理啊?

ps:非常多谢你的开源!

手动断开连接的时候报错

调stopConnect方法时,异常:
08-02 08:44:23.283 26589-26589/com.rabtman.wsdemo W/System.err: java.net.SocketException: Socket closed
08-02 08:44:23.283 26589-26589/com.rabtman.wsdemo W/System.err: at java.net.SocketInputStream.socketRead0(Native Method)
08-02 08:44:23.283 26589-26589/com.rabtman.wsdemo W/System.err: at java.net.SocketInputStream.read(SocketInputStream.java:151)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at java.net.SocketInputStream.read(SocketInputStream.java:120)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okio.Okio$2.read(Okio.java:139)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okio.RealBufferedSource.request(RealBufferedSource.java:67)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okio.RealBufferedSource.require(RealBufferedSource.java:60)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okio.RealBufferedSource.readByte(RealBufferedSource.java:73)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:113)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:97)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
08-02 08:44:23.284 26589-26589/com.rabtman.wsdemo W/System.err: at java.lang.Thread.run(Thread.java:761)

带参数怎么不行呢

服务器链接可以,但带参数后连接就有问题了,后台说他没有获取到参数,然后返回的数据和ios和网页都不同,请求链接是wss的,Response返回的里面是https的

服务器报500

你好使用库 然后连接之后 填写的是ws 显示http 服务器报500 请问我哪儿没有配置好吗?谢谢

心跳包

需要自己写心跳包来维护和server 的连接么?
怎么写ping/pong 呢?

断线重连有个问题

在重连方法中判断了当前网络连接状态,如果未连接直接return了,导致永远无法重新连接,但是这个时候有可能是wife切换4g的情况。希望加入重连次数和时间间隔的配置,现在只能自己写个任务去检查连接状态手动调用startConnect比较麻烦。

支持wss

能不能支持一下wss的证书验证啊
要不然使用 wss,就会报:/System.err: at android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.