Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
class AttendeesChat extends Component {
...
async componentDidMount() {
const { match, user, streamToken } = this.props;
await this.chatClient.setUser(user, streamToken);
const channel = await this.chatClient.channel('messaging', match.params.conferenceAlias, {
name: 'Video Call',
});
await this.setState({
channel,
});
}
...
}
...
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.