|
@@ -1,12 +1,13 @@
|
|
package co.id.datacomsolusindo.ipphonebridge
|
|
package co.id.datacomsolusindo.ipphonebridge
|
|
|
|
|
|
|
|
+import org.apache.logging.log4j.LogManager
|
|
import org.springframework.messaging.handler.annotation.DestinationVariable
|
|
import org.springframework.messaging.handler.annotation.DestinationVariable
|
|
import org.springframework.messaging.handler.annotation.MessageMapping
|
|
import org.springframework.messaging.handler.annotation.MessageMapping
|
|
import org.springframework.messaging.handler.annotation.SendTo
|
|
import org.springframework.messaging.handler.annotation.SendTo
|
|
import org.springframework.stereotype.Controller
|
|
import org.springframework.stereotype.Controller
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
-class SocketChecker() {
|
|
|
|
|
|
+class SocketChecker {
|
|
|
|
|
|
@MessageMapping("/hi")
|
|
@MessageMapping("/hi")
|
|
@SendTo("/topic/healthCheck")
|
|
@SendTo("/topic/healthCheck")
|
|
@@ -19,7 +20,7 @@ class SocketChecker() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- fun collectChunk(message: SocketChunkData, id: String) {
|
|
|
|
|
|
+ fun collectChunk(message: SocketChunkData, id: String){
|
|
if (message.totalPart == 1) {
|
|
if (message.totalPart == 1) {
|
|
// println("one part only with id $id")
|
|
// println("one part only with id $id")
|
|
Singletons.responseQue.getOrPut(id) {
|
|
Singletons.responseQue.getOrPut(id) {
|