@wazo/sdk 0.38.4 → 0.38.5
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/README.md +3 -3
- package/dist/wazo-sdk.js +2 -2
- package/esm/__tests__/web-rtc-client.test.js +8 -0
- package/esm/checker/Checker.js +8 -0
- package/esm/checker/checks/index.js +8 -0
- package/esm/checker/checks/webrtc-transport.js +8 -0
- package/esm/checker/checks/webrtc.js +8 -0
- package/esm/domain/__tests__/Line.test.js +5 -5
- package/esm/index.js +9 -2
- package/esm/lib/WazoSessionDescriptionHandler.js +8 -0
- package/esm/simple/Auth.js +9 -2
- package/esm/simple/Configuration.js +9 -2
- package/esm/simple/Phone.js +9 -2
- package/esm/simple/Softphone.js +1 -2
- package/esm/simple/index.js +9 -2
- package/esm/simple/room/LocalParticipant.js +9 -2
- package/esm/simple/room/Participant.js +9 -2
- package/esm/simple/room/RemoteParticipant.js +9 -2
- package/esm/simple/room/Room.js +9 -2
- package/esm/simple/room/SipRoom.js +9 -2
- package/esm/simple/room/Stream.js +9 -2
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +9 -2
- package/esm/simple/utils.js +9 -2
- package/esm/web-rtc-client.js +8 -0
- package/lib/__tests__/web-rtc-client.test.js +8 -0
- package/lib/checker/Checker.js +8 -0
- package/lib/checker/checks/index.js +8 -0
- package/lib/checker/checks/webrtc-transport.js +8 -0
- package/lib/checker/checks/webrtc.js +8 -0
- package/lib/domain/__tests__/Line.test.js +5 -5
- package/lib/index.js +9 -2
- package/lib/lib/WazoSessionDescriptionHandler.js +8 -0
- package/lib/simple/Auth.js +9 -2
- package/lib/simple/Configuration.js +9 -2
- package/lib/simple/Phone.js +9 -2
- package/lib/simple/Softphone.js +1 -2
- package/lib/simple/index.js +9 -2
- package/lib/simple/room/LocalParticipant.js +9 -2
- package/lib/simple/room/Participant.js +9 -2
- package/lib/simple/room/RemoteParticipant.js +9 -2
- package/lib/simple/room/Room.js +9 -2
- package/lib/simple/room/SipRoom.js +9 -2
- package/lib/simple/room/Stream.js +9 -2
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +9 -2
- package/lib/simple/utils.js +9 -2
- package/lib/web-rtc-client.js +8 -0
- package/package.json +1 -1
- package/src/domain/__tests__/Line.test.js +5 -5
- package/src/lib/WazoSessionDescriptionHandler.js +8 -0
- package/src/simple/Softphone.js +1 -2
package/README.md
CHANGED
|
@@ -928,7 +928,7 @@ import { WazoWebSocketClient } from '@wazo/sdk';
|
|
|
928
928
|
|
|
929
929
|
```js
|
|
930
930
|
const client = new WazoApiClient({
|
|
931
|
-
server: 'stack.
|
|
931
|
+
server: 'stack.example.com', // required string
|
|
932
932
|
agent: null, // http(s).Agent instance, allows custom proxy, unsecured https, certificate etc.
|
|
933
933
|
clientId: null, // Set an identifier for your app when using refreshToken
|
|
934
934
|
isMobile: false,
|
|
@@ -1196,7 +1196,7 @@ Use this generic method to request endpoints directly.
|
|
|
1196
1196
|
|
|
1197
1197
|
```js
|
|
1198
1198
|
const requester = new ApiRequester({
|
|
1199
|
-
server: 'stack.
|
|
1199
|
+
server: 'stack.example.com', // Engine server
|
|
1200
1200
|
refreshTokenCallback: () => {}, // Called when the token is refreshed
|
|
1201
1201
|
clientId: 'my-id', // ClientId used for refreshToken
|
|
1202
1202
|
agent: null, // http(s).Agent instance, allows custom proxy, unsecured https, certificate etc.
|
|
@@ -1218,7 +1218,7 @@ const session = await client.auth.logIn({ ... }); // log in
|
|
|
1218
1218
|
|
|
1219
1219
|
const client = new WazoWebRTCClient({
|
|
1220
1220
|
displayName: 'From WEB',
|
|
1221
|
-
host: 'stack.
|
|
1221
|
+
host: 'stack.example.com',
|
|
1222
1222
|
websocketSip: 'other.url.com', // Allows to connect throught another URL than host (default to `host` is not set).
|
|
1223
1223
|
media: {
|
|
1224
1224
|
audio: boolean,
|