Skip to content

five-on-it / packages/protocol/src/rtc / RtcSignal

Variable: RtcSignal ​

const RtcSignal: ZodDiscriminatedUnion<[ZodObject<{ op: ZodLiteral<"offer">; sdp: ZodString; type: ZodLiteral<"rtc">; }, $strip>, ZodObject<{ op: ZodLiteral<"answer">; sdp: ZodString; type: ZodLiteral<"rtc">; }, $strip>, ZodObject<{ candidate: ZodObject<{ candidate: ZodString; sdpMid: ZodOptional<ZodNullable<ZodString>>; sdpMLineIndex: ZodOptional<ZodNullable<ZodNumber>>; usernameFragment: ZodOptional<ZodNullable<ZodString>>; }, $strip>; op: ZodLiteral<"candidate">; type: ZodLiteral<"rtc">; }, $strip>, ZodObject<{ op: ZodLiteral<"close">; reason: ZodEnum<{ dropped: "dropped"; failed: "failed"; frames: "frames"; full: "full"; remote: "remote"; silence: "silence"; timeout: "timeout"; worker: "worker"; }>; type: ZodLiteral<"rtc">; }, $strip>], "op">

Defined in: packages/protocol/src/rtc.ts:68

A signalling frame: an offer, an answer, a candidate, or a fall back to the WebSocket.