@interactify-live/player-react-native
Version:
React Native library for Interactify player with media display, widgets, and MQTT integration
34 lines (33 loc) • 812 B
TypeScript
export declare const CONNECTION_STATUS: {
readonly CONNECTING: "CONNECTING";
readonly RECONNECTING: "RECONNECTING";
readonly CONNECTED: "CONNECTED";
readonly OFFLINE: "OFFLINE";
readonly ERROR: "ERROR";
};
export interface ConnectOptions {
user_id: string;
token: string;
scope: 'short' | 'live';
space_slug: string;
slug: string;
session: string;
brokerUrl?: string;
}
export interface ShortMessage {
avatar: string;
text: string;
created_at: string;
user_id: string;
display_name: string;
live_slug: string;
space_slug: string;
visible: boolean;
slug: string;
reply_to?: {
text: string;
user_id: string;
display_name: string;
};
}
export type ConnectionStatus = keyof typeof CONNECTION_STATUS;