Finished up with css-only flair implementation.
This commit is contained in:
parent
5b5f495853
commit
9dbbc4e924
13 changed files with 231 additions and 60 deletions
|
|
@ -43,9 +43,19 @@ class channel{
|
|||
document.title = `${this.channelName} - Connected`
|
||||
});
|
||||
|
||||
this.socket.on("error", (data) => {
|
||||
console.log(data);
|
||||
});
|
||||
this.socket.on("clientMetadata", this.handleClientInfo.bind(this));
|
||||
|
||||
this.socket.on("error", console.log);
|
||||
}
|
||||
|
||||
handleClientInfo(data){
|
||||
this.user = {
|
||||
id: data.user.id,
|
||||
name: data.user.name,
|
||||
rank: data.user.rank
|
||||
}
|
||||
|
||||
this.chatBox.handleClientInfo(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue