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