Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/14.js Secret
Created May 28, 2019

Embed
What would you like to do?
// ./src/App.vue
// [...]
async initializeClient () {
// Initialize the StreamChat SDK
const client = new StreamChat(
process.env.VUE_APP_KEY,
{timeout: 5000}
);
await client.setUser(
{
id: this.userId,
name: this.userId,
},
this.token,
);
this.client = client
},
// [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.