mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-06 21:21:08 +01:00
Add automatically scheduled pings in PingManager
replaces keep-alive functionality. SMACK-537
This commit is contained in:
parent
54a421e84e
commit
3a4e6c6d39
5 changed files with 273 additions and 40 deletions
|
|
@ -186,7 +186,7 @@ public class PingTest {
|
|||
public void checkSuccessfulDiscoRequest() throws Exception {
|
||||
ThreadedDummyConnection con = new ThreadedDummyConnection();
|
||||
DiscoverInfo info = new DiscoverInfo();
|
||||
info.addFeature(Ping.NAMESPACE);
|
||||
info.addFeature(PingManager.NAMESPACE);
|
||||
|
||||
//@formatter:off
|
||||
String reply =
|
||||
|
|
@ -209,7 +209,7 @@ public class PingTest {
|
|||
public void checkUnuccessfulDiscoRequest() throws Exception {
|
||||
ThreadedDummyConnection con = new ThreadedDummyConnection();
|
||||
DiscoverInfo info = new DiscoverInfo();
|
||||
info.addFeature(Ping.NAMESPACE);
|
||||
info.addFeature(PingManager.NAMESPACE);
|
||||
|
||||
//@formatter:off
|
||||
String reply =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue