-
-
Save JcMinarro/4b71d10ba264ae1211d805829defc982 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 token: String = "user jwt token" | |
val user = User("user_id").apply { | |
extraData["name"] = "John" | |
extraData["image"] = "https://server.com/profile/picture.jpg" | |
} | |
client.setUser(user, token, object : InitConnectionListener() { | |
override fun onSuccess(data: ConnectionData) { | |
// user has been connected successful | |
} | |
override fun onError(error: ChatError) { | |
// An error has succeeded | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment