UNPKG

@webrtc-remote-control/vue

Version:

Thin abstraction layer above peerjs that will let you be more productive at making WebRTC data channels based apps.

25 lines (23 loc) 561 B
import { HumanErrorsMapping, HumanizeErrorType, GetPeerIdType, IsConnectionFromRemoteType, } from "@webrtc-remote-control/core"; export function provideWebTCRemoteControl( init: ({ humanizeError, getPeerId, isConnectionFromRemote, }: { humanizeError: HumanizeErrorType; getPeerId: GetPeerIdType; isConnectionFromRemote?: IsConnectionFromRemoteType; }) => any, mode: "remote" | "master", options?: { masterPeerId?: string; sessionStorageKey?: string; humanErrors?: Partial<HumanErrorsMapping>; } ): void;