Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit e35dcfd

Browse files
committed
Remove useWebRTC hook
1 parent a56524b commit e35dcfd

File tree

4 files changed

+1
-166
lines changed

4 files changed

+1
-166
lines changed

example/ios/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1410,4 +1410,4 @@ SPEC CHECKSUMS:
14101410

14111411
PODFILE CHECKSUM: 8daa796ed34dbeeeb2b648d198968b27b4c2ae8d
14121412

1413-
COCOAPODS: 1.13.0
1413+
COCOAPODS: 1.14.3

src/__mocks__/index.tsx

-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ const emptyPromise = async (): Promise<void> => {
3838
});
3939
};
4040

41-
export const useWebRTC = () => {
42-
return {
43-
connect: emptyPromise,
44-
disconnect: emptyPromise,
45-
error: null,
46-
};
47-
};
4841
export const useEndpoints = () => [];
4942
export const setTargetTrackEncoding = emptyPromise;
5043
export const useCamera = () => {

src/hooks/useWebRTC.ts

-157
This file was deleted.

src/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export { useEndpoints } from './hooks/useEndpoints';
99
export { useMicrophone } from './hooks/useMicrophone';
1010
export { useRTCStatistics } from './hooks/useRTCStatistics';
1111
export { useScreencast } from './hooks/useScreencast';
12-
export { useWebRTC } from './hooks/useWebRTC';
1312

1413
export {
1514
updateAudioTrackMetadata,

0 commit comments

Comments
 (0)