GithubHelp home page GithubHelp logo

Comments (4)

DenysGonchar avatar DenysGonchar commented on June 8, 2024

there are a few things you need to take into account here:

  • it only sends push notifications if the client sends an unavailable presence or disconnect manually - no, it sends a message to the disconnected client regardless of how the disconnection happened. The issue here is disconnection detection, because the server thinks that the client is still connected.
  • Shouldn't the server detect that the client has become offline after some seconds - it could take quite a while before TCP connection is closed, normally you need mod_ping to speed up the detection of spontaneously broken connections. but it's still not a matter of seconds (too frequent pinging is inefficient).
  • sent the messages received during that period to the push service - in order to understand how many messages are not delivered to the user you need an acknowledgment mechanism, mod_stream_managment allows to do batch acknowledgment and it is a recommended mechanism.
  • push notification for unacknowledged messages - you may want to use mod_event_pusher_push_plugin_enhanced to have immediate (but still after detection of disconnection) delivery of all unacknowledged messages to the client via push notification.

Alternative solutions:

  • in some cases you may want to deliver all of the messages via push notifications, and when the client app is online it can simply drop push notifications.

from mongooseim.

alvinlal avatar alvinlal commented on June 8, 2024

i do have mod_event_pusher_push_plugin_enhanced enabled, but don't have mod_ping enabled, i will enable it and see 👍

from mongooseim.

alvinlal avatar alvinlal commented on June 8, 2024

hi @DenysGonchar , i have tried enabling mod_ping , but still the issue persists, for some reason, server is not detecting that the client has gone offline and not sending push notifications, is there any other way that i could debug this ?

from mongooseim.

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.