@bee.js/node 0.0.65 → 0.0.66

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.
@@ -3,14 +3,16 @@ const beeDEV = require("../DEV/beeDEV");
3
3
  const https = require("https");
4
4
  const fs = require("fs");
5
5
 
6
- module.exports = function (app) {
6
+ module.exports = function (app, { ws } = {}) {
7
7
  const ports = (global.configs.port || global.configs.ports || 1987.443)
8
8
  .toString()
9
9
  .split(".");
10
10
 
11
11
  app.post("/beedev/:action", beeDEV); //TODO check security and create a method for define enable/disable
12
12
 
13
- app.listen(ports[0]);
13
+ app.listen(ports[0], () => {
14
+ ws?.({ app });
15
+ });
14
16
 
15
17
  log(`${configs.name || "Bee.js"} started.`);
16
18
  log(`${configs.name || "System"} listening at http://localhost:${ports[0]}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bee.js/node",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "A JavaScript framework for making Node.js API´s",
5
5
  "main": "index.js",
6
6
  "scripts": {