simple-xmpp / node-simple-xmpp

Simple High Level NodeJS XMPP Client
301 stars 90 forks source link

Check for online status before sending text #42

Open Folcr opened 10 years ago

Folcr commented 10 years ago

Hello, I am using node-simple.xmpp in an home automation environment (http://ccu.io/). I want to send events as xmpp messges to my google talk account which works initially pretty fine. However after some hours the google talk server seems to close the connection. I have tried to implement a reconnect in the onClose() method but that does not work.

Question: Can I check the online status before I send a text message? How? Thanks.

Mo33n commented 9 years ago

server close the connection for the passive participants who have not send any message for e.g X time.

You can update the X time in the server settings , or just disable the feature of the server, which close the connection of passive clients.

nectarbits commented 8 years ago

HI can anyone help me with this: http://stackoverflow.com/questions/33985984/xmpp-ejabberd-online-offline-status-issue-when-internet-connection-loss