Skip to content

need help : subscribe on topic not working #145

@LovepreetSinghLotey

Description

@LovepreetSinghLotey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions