UNPKG

@chatscope/use-chat

Version:

React hook for state management in chat applications

13 lines (10 loc) 318 B
import { ChatEventType } from "../enums"; import { ChatEvent } from "./ChatEvent"; export class UserDisconnectedEvent implements ChatEvent<ChatEventType.UserDisconnected> { readonly type = ChatEventType.UserDisconnected; readonly userId: string; constructor(userId: string) { this.userId = userId; } }