Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/connect-to-stream.js Secret

Created Nov 11, 2019
What would you like to do?
// frontend/src/StartChat.js
const response = await post("http://localhost:8080/v1/stream-credentials", {}, backendAuthToken);
const client = new StreamChat(response.apiKey);
client.setUser(response.user, response.token);
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.