Giter VIP home page Giter VIP logo

Comments (7)

ideawu avatar ideawu commented on August 19, 2024

Hi, 需要修改一下 icomet.conf,

max_subscribers_per_channel: 16

from icomet.

mrvoce avatar mrvoce commented on August 19, 2024

thank you,请问下这个参数是控制什么的?具体含义和用法是?

from icomet.

ideawu avatar ideawu commented on August 19, 2024

顾名思义, 便是每条通道的最大订阅数.

from icomet.

sylnkk avatar sylnkk commented on August 19, 2024

我也出现这个问题,也是提示太多的订阅者,Too many subscribers这个问题(app端会出现,但是在网页端又不会),我配置了max_subscribers_per_channel: 16000,问题还是没解决,请问有解决的方案吗??
还有有没有更好的解决消息丢失的问题,比如微信app,他们也有相关的处理手段!!

from icomet.

ideawu avatar ideawu commented on August 19, 2024

@sylnkk 你需要根据情况继续加大这个参数.

关于消息丢失的问题的处理, 正常情况 icomet 缓存了一些消息, 每条消息有序号, 会自动重传(根据客户端传的 seq 参数), 如果序号出现不连续, 应用应该自己到持久化层(如DB)里获取丢失的消息.

from icomet.

sylnkk avatar sylnkk commented on August 19, 2024

@ideawu icomet如何做消息状态的监控,比如服务端推送消息给客户端,如果客户端没收到,如何实现服务端重发? 现在用php做服务端,java做客户端,开发安卓应用遇到这个问题,而且icomet推送的消息有些手机又收不到,比较奇怪。。。 坐等您的回答,随便感谢您的icomet,让推送更简单。。。

from icomet.

ideawu avatar ideawu commented on August 19, 2024

icomet会根据客户端连接上来时传递的seq参数决定从哪个位置发送消息, 如果你指定了一个旧的位置, 那么就会得到被重发的消息.

当然, 这个seq必须处在一个范围, 也就是必须是缓存队列中的某一条消息, 如果指定的seq不在缓存队列中, 则无法重发.

所以, 对于你的问题: 指定正确的 seq, icomet 会重发消息.

from icomet.

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.