Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

722 B
Raw Blame
export interface MessageType {
  user: User;
  body: string;
  id: string;
  key: string;
  name: string;
  timestamp: string;
  type: string;
  visible: boolean;
}

export interface User {
  id: string;
  displayName: string;
  createdAt: Date;
  disabledAt: Date;
  disabledReason?: string;
  previousNames: [string];
  nameChangedAt: Date;
  scopes?: [string];
  displayColor?: number;
  isBot?: boolean;
  authenticated?: boolean;
  authProviders?: string[];
}

export interface UsernameHistory {
  displayName: string;
  changedAt: Date;
}

export interface UserConnectionInfo {
  connectedAt: Date;
  messageCount: number;
  userAgent: string;
}

export interface Client extends UserConnectionInfo {
  user: User;
}