subscribeOnMain

fun subscribeOnMain(channelId: Long, messageId: Long, onNext: (HashMap<Int, PollsStore.VotesSnapshot>?) -> Unit): Subscription

Subscribes to poll changes, and run the handler on the main UI thread.

Parameters

channelId

Channel ID of message

messageId

Message ID to subscribe to

onNext

Event handler, will run on the main thread