UNPKG

@rtcio/react

Version:

A wrapper around the @rtcio/core library for React integration

11 lines 503 B
import { VoidMethods } from "@rtcio/core"; /** * !IMPORTANT make sure you manually cleanup any events you subscribe to here. * Otherwise, use the `useRtcListener` hook for React to automatically manage * subscriptions */ export declare function useRtc<TEvents extends VoidMethods<TEvents> = Record<string, never>>(): { rtc: import("@dbidwell94/ts-utils").Option<import("@rtcio/core").RTC<TEvents>>; myId: import("@dbidwell94/ts-utils").Option<string>; }; //# sourceMappingURL=useRtc.d.ts.map