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