Skip to content

Commit

Permalink
common: simplify some socket utils
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 28, 2023
1 parent 8a1633f commit f55cc60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions common/src/ffmpeg-rebroadcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ export interface RebroadcasterOptions {
},
}

export async function handleRebroadcasterClient(duplex: Promise<Duplex> | Duplex, options?: RebroadcasterOptions) {
const socket = await duplex;
export function handleRebroadcasterClient(socket: Duplex, options?: RebroadcasterOptions) {
const firstWriteData = (data: StreamChunk) => {
if (data.startStream) {
socket.write(data.startStream)
Expand Down
2 changes: 1 addition & 1 deletion common/src/listen-cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ export async function bind(server: dgram.Socket, port: number) {
}
}

export { listenZero, listenZeroSingleClient } from "@scrypted/server/src/listen-zero";
export { listenZero, listenZeroSingleClient, ListenZeroSingleClientTimeoutError } from "@scrypted/server/src/listen-zero";

0 comments on commit f55cc60

Please sign in to comment.