@webex/calling 3.12.0-mobius-socket.17 → 3.12.0-mobius-socket.19

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.
Files changed (49) hide show
  1. package/dist/CallingClient/utils/request.js +6 -3
  2. package/dist/CallingClient/utils/request.js.map +1 -1
  3. package/dist/CallingClient/utils/request.test.js +2 -2
  4. package/dist/CallingClient/utils/request.test.js.map +1 -1
  5. package/dist/CallingClient/utils/types.js.map +1 -1
  6. package/dist/SDKConnector/types.js.map +1 -1
  7. package/dist/mobius-socket/config.js +7 -44
  8. package/dist/mobius-socket/config.js.map +1 -1
  9. package/dist/mobius-socket/errors.js +25 -21
  10. package/dist/mobius-socket/errors.js.map +1 -1
  11. package/dist/mobius-socket/index.js +0 -44
  12. package/dist/mobius-socket/index.js.map +1 -1
  13. package/dist/mobius-socket/mobius-socket-events.test.js +20 -48
  14. package/dist/mobius-socket/mobius-socket-events.test.js.map +1 -1
  15. package/dist/mobius-socket/mobius-socket.js +302 -701
  16. package/dist/mobius-socket/mobius-socket.js.map +1 -1
  17. package/dist/mobius-socket/mobius-socket.test.js +435 -718
  18. package/dist/mobius-socket/mobius-socket.test.js.map +1 -1
  19. package/dist/mobius-socket/socket/socket-base.js +70 -78
  20. package/dist/mobius-socket/socket/socket-base.js.map +1 -1
  21. package/dist/mobius-socket/socket.test.js +36 -61
  22. package/dist/mobius-socket/socket.test.js.map +1 -1
  23. package/dist/mobius-socket/types.js +7 -0
  24. package/dist/mobius-socket/types.js.map +1 -0
  25. package/dist/module/CallingClient/utils/request.js +3 -2
  26. package/dist/module/mobius-socket/config.js +7 -10
  27. package/dist/module/mobius-socket/errors.js +17 -0
  28. package/dist/module/mobius-socket/index.js +0 -3
  29. package/dist/module/mobius-socket/mobius-socket.js +211 -401
  30. package/dist/module/mobius-socket/socket/socket-base.js +64 -69
  31. package/dist/module/mobius-socket/types.js +1 -0
  32. package/dist/types/CallingClient/utils/request.d.ts.map +1 -1
  33. package/dist/types/CallingClient/utils/types.d.ts +1 -1
  34. package/dist/types/CallingClient/utils/types.d.ts.map +1 -1
  35. package/dist/types/SDKConnector/types.d.ts +15 -0
  36. package/dist/types/SDKConnector/types.d.ts.map +1 -1
  37. package/dist/types/mobius-socket/config.d.ts +7 -8
  38. package/dist/types/mobius-socket/config.d.ts.map +1 -1
  39. package/dist/types/mobius-socket/errors.d.ts +7 -0
  40. package/dist/types/mobius-socket/errors.d.ts.map +1 -1
  41. package/dist/types/mobius-socket/index.d.ts +3 -5
  42. package/dist/types/mobius-socket/index.d.ts.map +1 -1
  43. package/dist/types/mobius-socket/mobius-socket.d.ts +26 -37
  44. package/dist/types/mobius-socket/mobius-socket.d.ts.map +1 -1
  45. package/dist/types/mobius-socket/socket/socket-base.d.ts +10 -10
  46. package/dist/types/mobius-socket/socket/socket-base.d.ts.map +1 -1
  47. package/dist/types/mobius-socket/types.d.ts +21 -0
  48. package/dist/types/mobius-socket/types.d.ts.map +1 -0
  49. package/package.json +1 -1
@@ -4,6 +4,11 @@
4
4
  import { Exception } from '@webex/common';
5
5
  export class ConnectionError extends Exception {
6
6
  static defaultMessage = 'Failed to connect to socket';
7
+ code;
8
+ reason;
9
+ constructor(event) {
10
+ super(event);
11
+ }
7
12
  parse(event = {}) {
8
13
  Object.defineProperties(this, {
9
14
  code: {
@@ -18,13 +23,25 @@ export class ConnectionError extends Exception {
18
23
  }
19
24
  export class UnknownResponse extends ConnectionError {
20
25
  static defaultMessage = 'UnknownResponse is produced by IE when we receive a 4XXX. You probably want to treat this like a NotFound';
26
+ constructor(event) {
27
+ super(event);
28
+ }
21
29
  }
22
30
  export class BadRequest extends ConnectionError {
23
31
  static defaultMessage = 'BadRequest usually implies an attempt to use service account credentials';
32
+ constructor(event) {
33
+ super(event);
34
+ }
24
35
  }
25
36
  export class NotAuthorized extends ConnectionError {
26
37
  static defaultMessage = 'Please refresh your access token';
38
+ constructor(event) {
39
+ super(event);
40
+ }
27
41
  }
28
42
  export class Forbidden extends ConnectionError {
29
43
  static defaultMessage = 'Forbidden usually implies these credentials are not entitled for Webex';
44
+ constructor(event) {
45
+ super(event);
46
+ }
30
47
  }
@@ -22,6 +22,3 @@ export function resetMobiusSocketInstance() {
22
22
  }
23
23
  export default MobiusSocket;
24
24
  export { MobiusSocket };
25
- export { default as Socket } from './socket';
26
- export { config };
27
- export { BadRequest, ConnectionError, Forbidden, NotAuthorized, UnknownResponse } from './errors';