Comments (4)
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.
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.
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)
- Inbox does not update unread counter correctly when not marking all messages as read HOT 2
- Inbox's unread messages count not manages XEP-0422 (Message Fastening) HOT 4
- 4.5.0-alpha1 smack: Message Archive Management is not supported by HOT 3
- `mod_blocking` doesn't stop messages from being processed by `modules.mod_mam.pm` or `mod_inbox` HOT 2
- How to get actual message xml packet with external code or by direct database query in MAM HOT 9
- mongooseimctl ipv6 support HOT 9
- Duplicated messages in `mam_message` HOT 4
- -proto_dist inet6_tcp support? HOT 2
- mod_pubsub using subscribee returns bad-request, invalid-jid HOT 2
- Message sending failure with OMEMO HOT 2
- Change config in muclight replacing old config
- GraphQL session ListSessions returns empty lists
- `max_stanza_size` doesn't work with websockets HOT 2
- How to use wss ? HOT 4
- GraphQL SSE crashes on large message stanza payload HOT 1
- How does mongooseim handle unacknowledged stanza's ? HOT 2
- mod_event_pusher HTTP only sends chat type messages HOT 2
- How to implement stream resumption in XEP-0198 stream management from client side ? HOT 7
- gen_server 'wpool_pool-mongoose_wpool$rdbms$global$default-1' terminated with reason: {{{integer_overflow,int8,957926528636579656073}, HOT 4
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 mongooseim.