Drop pub/sub operations from WebsocketConnection.

This commit is contained in:
Jon Chambers
2020-09-09 19:21:55 -04:00
committed by Jon Chambers
parent 4f2e06407b
commit 7e14a0bc30
8 changed files with 66 additions and 223 deletions

View File

@@ -170,6 +170,10 @@ public class ClientPresenceManager extends RedisClusterPubSubAdapter<String, Str
}
}
public boolean isLocallyPresent(final UUID accountUuid, final long deviceId) {
return displacementListenersByPresenceKey.containsKey(getPresenceKey(accountUuid, deviceId));
}
public boolean clearPresence(final UUID accountUuid, final long deviceId) {
return clearPresence(getPresenceKey(accountUuid, deviceId));
}