-
-
Save JcMinarro/605a92bd9aa4b94299b2632695fb6fe1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val eventType: String = "message.new" | |
val subscription = channelController | |
.events() | |
.filter(eventType) | |
.subscribe { chatEvent -> renderMessage(chatEvent.message) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment