@interactify-live/player-react-native
Version:
React Native library for Interactify player with media display, widgets, and MQTT integration
35 lines (34 loc) • 1.07 kB
TypeScript
import { Observable } from "./Observable";
import { type ConnectOptions, type ShortMessage } from "./types";
export declare class Connector {
private client?;
private tempClient?;
private options?;
static readonly CONNECTION_STATUS: {
readonly CONNECTING: "CONNECTING";
readonly RECONNECTING: "RECONNECTING";
readonly CONNECTED: "CONNECTED";
readonly OFFLINE: "OFFLINE";
readonly ERROR: "ERROR";
};
private _status;
get status(): Observable<"CONNECTING" | "RECONNECTING" | "CONNECTED" | "OFFLINE" | "ERROR">;
private _messages;
get messages(): Observable<ShortMessage[]>;
private getTopics;
private onMessageReceived;
connect(options: ConnectOptions): void;
disconnect(): void;
publish(type: string): void;
sendMessage(message: {
text: string;
avatar?: string;
displayName?: string;
visible?: boolean;
replyTo?: {
text: string;
userID: string;
displayName: string;
};
}): void;
}