@azure/communication-chat 1.1.2 → 1.2.0-alpha.20220302.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +19 -0
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -196,6 +196,25 @@ await chatThreadClient.removeParticipant({ communicationUserId: '<MEMBER_ID>' })
|
|
|
196
196
|
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
+
### Subscribe to connection status of real time notifications
|
|
200
|
+
Subscription to events `realTimeNotificationConnected` and `realTimeNotificationDisconnected` allows you to know when the connection to the call server is active.
|
|
201
|
+
|
|
202
|
+
```JavaScript
|
|
203
|
+
|
|
204
|
+
// subscribe to realTimeNotificationConnected event
|
|
205
|
+
chatClient.on('realTimeNotificationConnected', () => {
|
|
206
|
+
console.log("Real time notification is now connected!");
|
|
207
|
+
// your code here
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
// subscribe to realTimeNotificationDisconnected event
|
|
211
|
+
chatClient.on('realTimeNotificationDisconnected', () => {
|
|
212
|
+
console.log("Real time notification is now disconnected!");
|
|
213
|
+
// your code here
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
|
|
199
218
|
## Troubleshooting
|
|
200
219
|
|
|
201
220
|
## Next steps
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/communication-chat",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.0-alpha.20220302.1",
|
|
4
4
|
"description": "Azure client library for Azure Communication Chat services",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"extract-api": "tsc -p . && api-extractor run --local",
|
|
20
20
|
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
21
21
|
"generate:client": "autorest --typescript ./swagger/README.md && rushx format",
|
|
22
|
-
"integration-test:browser": "
|
|
23
|
-
"integration-test:node": "
|
|
22
|
+
"integration-test:browser": "dev-tool run test:browser",
|
|
23
|
+
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
|
|
24
24
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
25
25
|
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
|
|
26
26
|
"lint": "eslint package.json api-extractor.json src test --ext .ts",
|
|
27
27
|
"pack": "npm pack 2>&1",
|
|
28
|
-
"test:browser": "npm run build:test && npm run unit-test:browser
|
|
29
|
-
"test:node": "npm run build:test && npm run unit-test:node
|
|
28
|
+
"test:browser": "npm run build:test && npm run unit-test:browser",
|
|
29
|
+
"test:node": "npm run build:test && npm run unit-test:node",
|
|
30
30
|
"test": "npm run build:test && npm run unit-test && npm run integration-test",
|
|
31
|
-
"unit-test:browser": "
|
|
32
|
-
"unit-test:node": "cross-env TS_NODE_FILES=true TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\"
|
|
31
|
+
"unit-test:browser": "dev-tool run test:browser",
|
|
32
|
+
"unit-test:node": "cross-env TS_NODE_FILES=true TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'",
|
|
33
33
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@azure/abort-controller": "^1.0.0",
|
|
66
66
|
"@azure/communication-common": "^1.1.0",
|
|
67
|
-
"@azure/communication-signaling": "1.0.0-beta.
|
|
67
|
+
"@azure/communication-signaling": "1.0.0-beta.13",
|
|
68
68
|
"@azure/core-auth": "^1.3.0",
|
|
69
69
|
"@azure/core-client": "^1.0.0",
|
|
70
70
|
"@azure/core-rest-pipeline": "^1.1.0",
|
|
@@ -78,9 +78,10 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@azure/core-util": "^1.0.0-beta.1",
|
|
80
80
|
"@azure/communication-identity": "^1.0.0",
|
|
81
|
-
"@azure/dev-tool": "
|
|
82
|
-
"@azure/eslint-plugin-azure-sdk": "
|
|
83
|
-
"@azure-tools/test-
|
|
81
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
82
|
+
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
83
|
+
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
|
|
84
|
+
"@azure-tools/test-recorder": ">=2.0.0-alpha <2.0.0-alphb",
|
|
84
85
|
"@microsoft/api-extractor": "^7.18.11",
|
|
85
86
|
"@types/chai": "^4.1.6",
|
|
86
87
|
"@types/mocha": "^7.0.2",
|