SocketUtils.instance.stompClient!!.topic("topic.58.rooms")
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({ topicMessage ->
println("topicMessage : ${topicMessage.payload}")
//this block is not working
}, { throwable -> throwable.printStackTrace() })
//code is written in kotlin
response from server is coming, and being loggin in the logcat but not receiving in the above subscribe block.