Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham
Created September 24, 2019 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LukeSmetham/0b6c03d96b807e90575cda669466f8c3 to your computer and use it in GitHub Desktop.
Save LukeSmetham/0b6c03d96b807e90575cda669466f8c3 to your computer and use it in GitHub Desktop.
...
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