@ejfdelgado/ejflab-back 1.32.7 → 1.32.8

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": "@ejfdelgado/ejflab-back",
3
- "version": "1.32.7",
3
+ "version": "1.32.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ejfdelgado/ejflab-back.git"
@@ -7,7 +7,8 @@ export class AskIceServersProcessor extends GenericProcessor {
7
7
  }
8
8
  execute(args) {
9
9
  // Reads from credentilas file...
10
- const text = fs.readFileSync(`./credentials/webrtcconfig.json`, 'utf8');
10
+ const confFile = process.env.WEBRTC_CONF || "./credentials/webrtcconfig.json";
11
+ const text = fs.readFileSync(confFile, 'utf8');
11
12
  const parsed = JSON.parse(text);
12
13
  this.io.to(this.socket.id).emit("oniceservers", parsed);
13
14
  }