How do I connect my app to chat?

Since you are using a library, you may want to refer to the libraries documentation

And/or the connection example