Message.ts 400 Bytes
export interface MessageResponse<T> {
  ok: boolean;
  reason?: string;
  result?: T;
}

export class MessageType {
  static readonly LOGIN = "login";
  static readonly ROOM_LIST_REQUEST = "room_list_request";
  static readonly ROOM_JOIN = "room_join";
  static readonly ROOM_LEAVE = "room_leave";
  static readonly ROOM_USER_UPDATE = "room_user_update";
  static readonly ROOM_CHAT = "room_chat";
}