Skip to content

Instantly share code, notes, and snippets.

@ammezie
Last active November 13, 2019 21:57
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/187547bedb9b4194d5662232bec2779d to your computer and use it in GitHub Desktop.
Save ammezie/187547bedb9b4194d5662232bec2779d to your computer and use it in GitHub Desktop.
// resources/views/js/ChatRoom.vue
this.channel.on("member.removed", event => {
this.members = this.members.filter(member => {
return member.user.id !== event.user.id;
});
this.status = `${event.user.name} just left the chat`;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment