@reactoo/watchtogether-sdk-js 2.5.95 → 2.5.97

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.5.95",
3
+ "version": "2.5.97",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -3,12 +3,27 @@
3
3
  let streamingSession = function({roomId, pinHash, streamId, href, iceServers, accessToken} = {}, room, wt) {
4
4
 
5
5
  let ___;
6
+
6
7
  return (___ = {
7
8
 
8
- destroy: function() {
9
+ get userId() {
10
+ return room.userId;
11
+ },
12
+ get roomId() {
13
+ return roomId;
14
+ },
15
+ get sessionId () {
16
+ return room.sessionId;
17
+ },
18
+ get constructId () {
19
+ return room.constructId;
20
+ },
21
+
22
+ destroy: function () {
9
23
  return wt.room.destroySession(room.constructId)
10
24
  .finally(() => {
11
25
  this.$clear();
26
+ return true;
12
27
  });
13
28
  },
14
29