Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/react-client/src/types/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ export type UseDataChannelResult = {
/**
* Sends binary data through a data channel.
* @param payload - The Uint8Array payload to send (first positional argument)
* @param options - Data channel options; specify { reliable: true } for guaranteed delivery or { reliable: false } for low latency
* @param options - Data channel options; specify `reliable: true` for guaranteed delivery or `reliable: false` for low latency
*/
publishData: (payload: Uint8Array, options: DataChannelOptions) => void;
/**
* Subscribe to incoming data on a data channel.
* Can be called before or after channel creation.
* @param callback - Function called when data is received
* @param options - Specify { reliable: true } or { reliable: false } to choose channel
* @param options - Specify `reliable: true` or `reliable: false` to choose channel
* @returns Unsubscribe function - call to cancel the subscription
*/
subscribeData: (callback: DataCallback, options: DataChannelOptions) => () => void;
Expand Down
Loading