Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.49 KB | None | 0 0
  1. fun subscribeChat(chatId: String) {
  2.         socket.emit(EVENT_SUBSCRIBE_CHAT, SubscribeChatData(chatId).getJson(), Ack { args ->
  3.             var responseWrapper: SocketResponseWrapper<Any> = SocketResponseWrapper()
  4.             try {
  5.                 responseWrapper = objectMapper.readValue(args[0].toString())
  6.             } catch (throwable: IOException) {
  7.                 throwable.printStackTrace()
  8.             }
  9.             responseWrapper.data?.let { data ->
  10.             }
  11.         })
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement