@reactoo/watchtogether-sdk-js 2.5.31 → 2.5.32

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.31",
3
+ "version": "2.5.32",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -981,7 +981,9 @@ class RoomSession {
981
981
  //TODO: Just in case something crashed along the way
982
982
  this._isPublished = false;
983
983
  this._hasJoined = false;
984
+ this.emit('publishing', false);
984
985
  this.emit('published', {status: false, hasStream: false});
986
+ this.emit('joining', false);
985
987
  this.emit('joined', false);
986
988
  this.emit('disconnect', _hasJoined);
987
989
  return Promise.resolve('Disconnected');
@@ -1071,8 +1073,8 @@ class RoomSession {
1071
1073
  }
1072
1074
  this.sessionId = null;
1073
1075
  this._isStreaming = false;
1076
+ this.emit('streamStarting', false);
1074
1077
  this.emit('streaming', false);
1075
- // last event
1076
1078
  this.emit('disconnect', _isStreaming);
1077
1079
  this.disconnectingPromise = null;
1078
1080
  return Promise.resolve('Disconnected');