in src/chat.js [28:48]
constructor(props) {
super(props);
this.state = {
messageList: [],
chatChannel: props.chatChannel,
title: props.title,
owner: props.owner,
chatMsg: "",
member: {},
isLoading: false,
nextToken: null,
logger: new ConsoleLogger('SDK', LogLevel.INFO),
endpoint: null,
}
console.log("chat!");
console.log(props);
this.setState({
messageList: this.getMessages(),
})
this.initSession();
}