Skip to content

Instantly share code, notes, and snippets.

@ammezie
Created November 13, 2019 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammezie/1cf6321d4383c4515b2412466cb41f3c to your computer and use it in GitHub Desktop.
Save ammezie/1cf6321d4383c4515b2412466cb41f3c to your computer and use it in GitHub Desktop.
// resources/js/components/ChatRoom.vue
...
async startedTyping() {
await this.channel.keystroke();
},
stoppedTyping() {
setTimeout(async () => {
await this.channel.stopTyping();
}, 2000);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment