Skip to content

Commit 8630208

Browse files
author
Russ Williams
committed
Updated to the latest version of packages for @azure/communication-chat and @azure/communication-react and @azure/web-pubsub
1 parent 181b013 commit 8630208

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

agent-portal/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@azure/communication-identity": "^1.0.0",
7-
"@azure/communication-react": "^1.0.0-beta.1",
8-
"@azure/web-pubsub": "^1.0.0-beta.3",
6+
"@azure/communication-calling": "^1.4.4",
7+
"@azure/communication-chat": "^1.2.0",
8+
"@azure/communication-react": "^1.3.0",
9+
"@azure/web-pubsub": "^1.0.0",
910
"@testing-library/jest-dom": "^5.12.0",
1011
"@testing-library/react": "^11.2.7",
1112
"@testing-library/user-event": "^12.8.3",
@@ -18,7 +19,7 @@
1819
"react-scripts": "4.0.3",
1920
"typescript": "^4.3.2",
2021
"web-vitals": "^1.1.2",
21-
"ws": "^8.0.0"
22+
"ws": "^8.8.1"
2223
},
2324
"scripts": {
2425
"start": "react-scripts start",

agent-portal/src/utils/pubsub.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { WebPubSubServiceClient, Event } = require('@azure/web-pubsub');
55

66
export async function subscribeToRefreshEvents(connectionString: string, hub: string, msgHandler: ((this: WebSocket, ev: MessageEvent) => any) | null) {
77
let serviceClient = new WebPubSubServiceClient(connectionString, hub);
8-
let token = await serviceClient.getAuthenticationToken();
8+
let token = await serviceClient.getClientAccessToken();
99
let webSocket = new WebSocket(token.url);
1010

1111
try {

0 commit comments

Comments
 (0)