File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ interface CollaborationConfigParams {
1919}
2020
2121interface 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' , ( ) => {
You can’t perform that action at this time.
0 commit comments