We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58b063 commit 7f1c1bfCopy full SHA for 7f1c1bf
.changeset/short-dingos-jump.md
@@ -0,0 +1,5 @@
1
+---
2
+"@livekit/components-react": patch
3
4
+
5
+Fix useDataChannel's send return type
packages/react/src/hooks/useDataChannel.ts
@@ -7,7 +7,7 @@ import { useObservableState } from './internal';
7
8
type UseDataChannelReturnType<T extends string | undefined = undefined> = {
9
isSending: boolean;
10
- send: (payload: Uint8Array, options: DataPublishOptions) => void;
+ send: (payload: Uint8Array, options: DataPublishOptions) => Promise<void>;
11
message: ReceivedDataMessage<T> | undefined;
12
};
13
0 commit comments