ReconnectionManager in asmack

后端 未结 4 472
野的像风
野的像风 2021-01-03 06:17

I have a project on Android, which needs to use asmack library to enable real time chat.

The key feature is reconnecting mechanism, that means my application can rec

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-03 06:39

    When setting up everything at the start, call

    ReconnectionManager.setEnabledPerDefault(true);
    

    Then connections created from then on will automatically reconnect.

提交回复
热议问题