Skip to content

Instantly share code, notes, and snippets.

@astrotars
Created April 2, 2020 14:06
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 astrotars/77bb713a93b852179c794b173cedee6d to your computer and use it in GitHub Desktop.
Save astrotars/77bb713a93b852179c794b173cedee6d to your computer and use it in GitHub Desktop.
const chatManager = new ChatManager({
instanceLocator: 'your_instance_locator',
userId: 'user_id',
tokenProvider: new TokenProvider({ url: 'your.auth.url' })
});
const currentUser = await chatManager.connect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment