I am trying to understand the mechanism when disconnect the network and connect again.
Say I disconnect with the network, and then I send a message packet, I can see a packet is sent from web socket. But from my understanding, as the network is not connected, the packet is not sent to the server. When I connect with the network again, I can see the response from the server in the same websocket.
I also did not see any reconnecting events happened with
xmpp.reconnect.on('reconnecting', () => {});
and no error in
xmpp.on('error', (error) => {});
Is there any special reconnect mechanism in this case? Could you help me understand what will happen when disconnect and reconnect the network.
And is it possible to abort the message sent when no network?
Hello,
I am trying to understand the mechanism when disconnect the network and connect again.
Say I disconnect with the network, and then I send a message packet, I can see a packet is sent from web socket. But from my understanding, as the network is not connected, the packet is not sent to the server. When I connect with the network again, I can see the response from the server in the same websocket.
I also did not see any reconnecting events happened with xmpp.reconnect.on('reconnecting', () => {});
and no error in xmpp.on('error', (error) => {});
Is there any special reconnect mechanism in this case? Could you help me understand what will happen when disconnect and reconnect the network.
And is it possible to abort the message sent when no network?
Thank you so much!