@dialtribe/react-sdk 0.1.0-alpha.10 → 0.1.0-alpha.11

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.
@@ -69,8 +69,9 @@ function getEndpoints(baseUrl = DIALTRIBE_API_BASE) {
69
69
  broadcast: (id) => `${baseUrl}/broadcasts/${id}`,
70
70
  contentPlay: `${baseUrl}/content/play`,
71
71
  presignedUrl: `${baseUrl}/media/presigned-url`,
72
- sessionStart: `${baseUrl}/session/start`,
73
- sessionPing: `${baseUrl}/session/ping`
72
+ audienceStart: `${baseUrl}/audiences/start`,
73
+ audiencePing: `${baseUrl}/audiences/ping`,
74
+ sessionPing: `${baseUrl}/sessions/ping`
74
75
  };
75
76
  }
76
77
  var ENDPOINTS = getEndpoints();
@@ -194,7 +195,7 @@ var DialTribeClient = class {
194
195
  * @returns audienceId and optional resumePosition
195
196
  */
196
197
  async startSession(params) {
197
- const response = await this.fetch(this.endpoints.sessionStart, {
198
+ const response = await this.fetch(this.endpoints.audienceStart, {
198
199
  method: "POST",
199
200
  body: JSON.stringify(params)
200
201
  });
@@ -213,7 +214,7 @@ var DialTribeClient = class {
213
214
  * - 3: UNMOUNT
214
215
  */
215
216
  async sendSessionPing(params) {
216
- const response = await this.fetch(this.endpoints.sessionPing, {
217
+ const response = await this.fetch(this.endpoints.audiencePing, {
217
218
  method: "POST",
218
219
  body: JSON.stringify(params)
219
220
  });