Skip to content

Commit

Permalink
refactor: added file level comment
Browse files Browse the repository at this point in the history
  • Loading branch information
arn4b committed Sep 15, 2023
1 parent d82e1e5 commit 8b4fed0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/restapi/src/lib/spaceV2/connect.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* connect.ts
*
* The 'connect' function is responsible for establishing peer connections
*
* @param {IConnectOptions} options - An object containing signal data and a peer address.
*/
import { produce } from "immer";

import { SpaceV2 } from "./SpaceV2";
Expand All @@ -7,7 +14,7 @@ import getIncomingIndexFromAddress from "../video/helpers/getIncomingIndexFromAd

export interface IConnectOptions {
signalData: any;
peerAddress?: string;
peerAddress: string;
}

export async function connect(
Expand Down

0 comments on commit 8b4fed0

Please sign in to comment.