Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Dec 22, 2024
1 parent 71c48d3 commit ddcec0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/livekit-rtc/src/data_streams/stream_reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ abstract class BaseStreamReader<T extends BaseStreamInfo> {
abstract readAll(): Promise<string | Array<Uint8Array>>;
}

/**
* A class to read chunks from a ReadableStream and provide them in a structured format.
*/
export class BinaryStreamReader extends BaseStreamReader<FileStreamInfo> {
private chunksReceived: Set<number>;

Expand Down
1 change: 1 addition & 0 deletions packages/livekit-rtc/src/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export class LocalParticipant extends Participant {
return writer;
}

/** Sends a file provided as PathLike to specified recipients */
async sendFile(path: PathLike, options?: FileStreamOptions) {
const fileStats = await stat(path);
const file = await open(path);
Expand Down

0 comments on commit ddcec0e

Please sign in to comment.