dpg.broadcast-client
Version:
Library for broadcast DPG
51 lines (50 loc) • 1.42 kB
TypeScript
import type { SocketOptions, ManagerOptions } from "socket.io-client";
interface ConfigBroadcast {
/**
* Socket config for connections
*
* @property socket.host - host of connection
* @property socket.config - default socket configuration
*/
socket: {
host: string;
config: Partial<SocketOptions & ManagerOptions & {
autoConnect: false;
}>;
};
/**
* PeerJS config for connections
*
* @property peer.host - host of connections
* @property peer.path - path of connections
* @property peer.secure - used secure for connection
* @property peer.config - default RTC config
*/
peer: {
host: string;
path: string;
secure: boolean;
config: RTCConfiguration;
};
/**
* Key for debug system
*/
debug?: boolean;
}
interface ConfigBroadcastVisitor extends ConfigBroadcast {
/**
* Socket config for connections
*
* @property socket.host - host of connection
* @property socket.config - default socket configuration
* @property socket.cid - ID of conference
*/
socket: {
host: string;
config: Partial<SocketOptions & ManagerOptions & {
autoConnect: false;
}>;
cid: string;
};
}
export { ConfigBroadcast, ConfigBroadcastVisitor };