|
@@ -25,13 +25,13 @@ object ClientHolder {
|
|
|
fun removeBySessionId(sessionId: String?) {
|
|
|
clientMap.entries.filter { it.value.sessionId == sessionId }.forEach {
|
|
|
clientMap.remove(it.key)
|
|
|
- //unsubscribe incoming data
|
|
|
+ //unsubscribe "/topic/partial/client"
|
|
|
}
|
|
|
}
|
|
|
|
|
|
fun put(key: String, client: Client) {
|
|
|
clientMap.getOrPut(key) { client }
|
|
|
- //subscribe incoming data
|
|
|
+ //subscribe "/topic/partial/client"
|
|
|
}
|
|
|
|
|
|
fun get() = clientMap
|