Skip to content

Commit d61c4f8

Browse files
authored
Merge pull request #1043 from amitamrutiya/roomactivity
refactor: rename signaling to signalingUrl in CollaborationConfig and…
2 parents 3a29bde + 6cba528 commit d61c4f8

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)