Skip to content

Instantly share code, notes, and snippets.

@hugomd
Last active May 23, 2018 11:27
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 hugomd/e71fe4ad9480621783088dbdb41d143d to your computer and use it in GitHub Desktop.
Save hugomd/e71fe4ad9480621783088dbdb41d143d to your computer and use it in GitHub Desktop.
await createuser(username);
+ const chatManager = new ChatManager({
+ instanceLocator: 'YOUR_INSTANCE_LOCATOR',
+ userId: username,
+ tokenProvider: new TokenProvider({url: 'http://localhost:3001/authenticate'}),
+ });
+ const currentUser = await chatManager.connect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment