File tree Expand file tree Collapse file tree 2 files changed +367
-321
lines changed
packages/mgt-chat/src/statefulClient Expand file tree Collapse file tree 2 files changed +367
-321
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ type Notification = {
3333 encryptedContent : string ;
3434} ;
3535
36+ const stripWssScheme = ( notificationUrl : string ) : string => notificationUrl . replace ( 'wss:' , '' ) ;
37+
3638export class GraphNotificationClient {
3739 private connection ?: signalR . HubConnection = undefined ;
3840 private renewalInterval = - 1 ;
@@ -240,7 +242,7 @@ export class GraphNotificationClient {
240242 withCredentials : false
241243 } ;
242244 const connection = new signalR . HubConnectionBuilder ( )
243- . withUrl ( notificationUrl , connectionOptions )
245+ . withUrl ( stripWssScheme ( notificationUrl ) , connectionOptions )
244246 . withAutomaticReconnect ( )
245247 . configureLogging ( signalR . LogLevel . Information )
246248 . build ( ) ;
You can’t perform that action at this time.
0 commit comments