videomail-client 9.2.22 → 9.2.24

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.
@@ -30,10 +30,10 @@ jobs:
30
30
  - name: Build assets
31
31
  run: npm run build
32
32
 
33
- # Electron issues, to fix later:
34
- # https://github.com/marketplace/actions/run-with-xvfb
35
- # - name: Run tests
36
- # run: npm run test
33
+ - name: Run tests
34
+ uses: coactions/setup-xvfb@v1
35
+ with:
36
+ run: npm run test
37
37
 
38
38
  - name: Run prettier
39
39
  run: npm run prettier
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "9.2.22",
3
+ "version": "9.2.24",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -17268,7 +17268,7 @@ function wrappy (fn, cb) {
17268
17268
  },{}],116:[function(_dereq_,module,exports){
17269
17269
  module.exports={
17270
17270
  "name": "videomail-client",
17271
- "version": "9.2.22",
17271
+ "version": "9.2.24",
17272
17272
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17273
17273
  "keywords": [
17274
17274
  "webcam",
@@ -22286,10 +22286,15 @@ var Recorder = function Recorder(visuals, replay) {
22286
22286
  if (err) {
22287
22287
  self.emit(_events.default.ERROR, err || "Unhandled websocket error");
22288
22288
  } else {
22289
- self.emit(_events.default.DISCONNECTED);
22289
+ // COMMENTED OUT TEMPORARILY, PROBABLY OLD CODE TOO
22290
+ // UPON CLOSE IT SHOULD TRY TO RECONNECT INSTEAD OF DISCONNECT.
22290
22291
 
22291
- // prevents from https://github.com/binarykitchen/videomail.io/issues/297 happening
22292
- cancelAnimationFrame();
22292
+ // self.emit(Events.DISCONNECTED);
22293
+ // // prevents from https://github.com/binarykitchen/videomail.io/issues/297 happening
22294
+ // cancelAnimationFrame();
22295
+
22296
+ // New: try to reconnect
22297
+ initSocket();
22293
22298
  }
22294
22299
  });
22295
22300
  stream.on("connect", function () {