![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/lib/node_modules/mediasoup/lib/ |
Upload File : |
/// <reference types="node" /> import { EnhancedEventEmitter } from './EnhancedEventEmitter'; import { Channel } from './Channel'; import { PayloadChannel } from './PayloadChannel'; import { SctpStreamParameters } from './SctpParameters'; export declare type DataProducerOptions = { /** * DataProducer id (just for Router.pipeToRouter() method). */ id?: string; /** * SCTP parameters defining how the endpoint is sending the data. * Just if messages are sent over SCTP. */ sctpStreamParameters?: SctpStreamParameters; /** * A label which can be used to distinguish this DataChannel from others. */ label?: string; /** * Name of the sub-protocol used by this DataChannel. */ protocol?: string; /** * Custom application data. */ appData?: any; }; export declare type DataProducerStat = { type: string; timestamp: number; label: string; protocol: string; messagesReceived: number; bytesReceived: number; }; /** * DataProducer type. */ export declare type DataProducerType = 'sctp' | 'direct'; export declare class DataProducer extends EnhancedEventEmitter { private readonly _internal; private readonly _data; private readonly _channel; private readonly _payloadChannel; private _closed; private readonly _appData?; private readonly _observer; /** * @private * @emits transportclose * @emits @close */ constructor({ internal, data, channel, payloadChannel, appData }: { internal: any; data: any; channel: Channel; payloadChannel: PayloadChannel; appData: any; }); /** * DataProducer id. */ get id(): string; /** * Whether the DataProducer is closed. */ get closed(): boolean; /** * DataProducer type. */ get type(): DataProducerType; /** * SCTP stream parameters. */ get sctpStreamParameters(): SctpStreamParameters | undefined; /** * DataChannel label. */ get label(): string; /** * DataChannel protocol. */ get protocol(): string; /** * App custom data. */ get appData(): any; /** * Invalid setter. */ set appData(appData: any); /** * Observer. * * @emits close */ get observer(): EnhancedEventEmitter; /** * Close the DataProducer. */ close(): void; /** * Transport was closed. * * @private */ transportClosed(): void; /** * Dump DataProducer. */ dump(): Promise<any>; /** * Get DataProducer stats. */ getStats(): Promise<DataProducerStat[]>; /** * Send data (just valid for DataProducers created on a DirectTransport). */ send(message: string | Buffer, ppid?: number): void; private _handleWorkerNotifications; } //# sourceMappingURL=DataProducer.d.ts.map