Giter Club home page Giter Club logo

Comments (6)

dhhAndroid avatar dhhAndroid commented on July 2, 2024

RxJava的常见错误,出现了背压错误,请问 你用的是RxJava1还是RxJava2的版本?,以及这个数据频率很快的WebSocket连接发送的数据,是否允许丢失?

from rxwebsocket.

YinWuteng avatar YinWuteng commented on July 2, 2024

RxJava的常见错误,出现了背压错误,请问 你用的是RxJava1还是RxJava2的版本?,以及这个数据频率很快的WebSocket连接发送的数据,是否允许丢失?

恩,是背压错误。用的Rx2,暂时不允许丢失吧。我感觉频率也不算高吧,就300ms每条都扛不住啊。

from rxwebsocket.

dhhAndroid avatar dhhAndroid commented on July 2, 2024

项目支持kotlin吗?我这有kotlin版本的,可以直接发给你用

from rxwebsocket.

YinWuteng avatar YinWuteng commented on July 2, 2024

项目支持kotlin吗?我这有kotlin版本的,可以直接发给你用

哈哈,暂时还没有在项目中引入kotlin,我在看看这个背压要怎么处理吧,谢谢。

from rxwebsocket.

dhhAndroid avatar dhhAndroid commented on July 2, 2024

你可以试试这个方法:

        RxWebSocket.get("url")
                .toFlowable(BackpressureStrategy.BUFFER) //处理背压的
                .subscribe();

把Observable转化成支持背压策略的Flowable,在网上查一下相关用法

from rxwebsocket.

YinWuteng avatar YinWuteng commented on July 2, 2024

你可以试试这个方法:

        RxWebSocket.get("url")
                .toFlowable(BackpressureStrategy.BUFFER) //处理背压的
                .subscribe();

把Observable转化成支持背压策略的Flowable,在网上查一下相关用法

好的。我明 天先测试一下这个效果,谢谢大佬。项目给star了

from rxwebsocket.

Related Issues (20)

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.