Skip to content

Instantly share code, notes, and snippets.

@JcMinarro
Created May 13, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JcMinarro/605a92bd9aa4b94299b2632695fb6fe1 to your computer and use it in GitHub Desktop.
Save JcMinarro/605a92bd9aa4b94299b2632695fb6fe1 to your computer and use it in GitHub Desktop.
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