wirePeerConnectionEventHandler
function wirePeerConnectionEventHandler<T>(wireOptions): void;
Wire the peer connection event with the pre-defined handler and signal accordingly
Type Parameters
| Type Parameter |
|---|
T extends keyof PeerConnectionSignals |
Parameters
| Parameter | Type | Description |
|---|---|---|
wireOptions | { key: T; pc: PeerConnection; signal: PeerConnectionSignals[T]; } | Wire event params + key - event key + pc - peer connection + signal - the signal to wire |
wireOptions.key | T | - |
wireOptions.pc | PeerConnection | - |
wireOptions.signal | PeerConnectionSignals[T] | - |
Returns
void