mediasoup
Version:
Cutting Edge WebRTC Video Conferencing
25 lines • 993 B
TypeScript
import type { Duplex } from 'node:stream';
import * as flatbuffers from 'flatbuffers';
import { EnhancedEventEmitter } from './enhancedEvents';
import { Body as RequestBody, Method } from './fbs/request';
import { Response } from './fbs/response';
import { Body as NotificationBody, Event } from './fbs/notification';
export declare class Channel extends EnhancedEventEmitter {
#private;
constructor({ producerSocket, consumerSocket, pid, }: {
producerSocket: Duplex;
consumerSocket: Duplex;
pid: number;
});
/**
* flatbuffer builder.
*/
get bufferBuilder(): flatbuffers.Builder;
close(): void;
notify(event: Event, bodyType?: NotificationBody, bodyOffset?: number, handlerId?: string): void;
request(method: Method, bodyType?: RequestBody, bodyOffset?: number, handlerId?: string): Promise<Response>;
private processResponse;
private processNotification;
private processLog;
}
//# sourceMappingURL=Channel.d.ts.map