Skip to content

Commit 1839655

Browse files
authored
Merge branch 'master' into fix/carousal_fix
2 parents 86a7138 + d61c4f8 commit 1839655

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hooks/useRoomActivity.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface CollaborationConfigParams {
1919
}
2020

2121
interface CollaborationConfig {
22-
signaling: string[];
22+
signalingUrl: string[];
2323
user: UserProfile;
2424
authToken: string;
2525
refreshAuthToken: () => Promise<string>;
@@ -113,7 +113,7 @@ export const getCollaborationConfig = async ({
113113
};
114114

115115
return {
116-
signaling: [getSignalingUrlFromProviderUrl(provider_url)],
116+
signalingUrl: [getSignalingUrlFromProviderUrl(provider_url)],
117117
user: userProfile,
118118
authToken: accessToken,
119119
refreshAuthToken: refreshToken,
@@ -143,7 +143,7 @@ const subscribeToRoomActivity = async (
143143
});
144144

145145
// Create the websocket connection with proper headers
146-
const ws = new WebSocket(config.signaling[0], ['auth', config.authToken]);
146+
const ws = new WebSocket(config.signalingUrl[0], ['auth', config.authToken]);
147147
wsRef.current = ws;
148148

149149
ws.addEventListener('open', () => {

0 commit comments

Comments
 (0)