@chatscope/use-chat
Version:
React hook for state management in chat applications
13 lines (10 loc) • 309 B
text/typescript
import { ChatEventType } from "../enums";
import { ChatEvent } from "./ChatEvent";
export class UserConnectedEvent
implements ChatEvent<ChatEventType.UserConnected> {
readonly type = ChatEventType.UserConnected;
readonly userId: string;
constructor(userId: string) {
this.userId = userId;
}
}