pulse-express.js 1.0.2 → 1.0.4
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/Functions.js +8 -13
- package/package.json +1 -1
package/Functions.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
var functions = {}
|
|
1
|
+
var functions = {};
|
|
2
2
|
|
|
3
3
|
function pulse() {
|
|
4
|
-
return functions
|
|
4
|
+
return functions;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
functions.CreateServer = function(
|
|
7
|
+
functions.CreateServer = function() {
|
|
8
8
|
const http = require('http');
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
callback(req, res); // The user now controls res.end() here
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
return server;
|
|
9
|
+
|
|
10
|
+
// This creates the server object but DOES NOT start it.
|
|
11
|
+
// It will sit idle until .listen() is called elsewhere.
|
|
12
|
+
return http.createServer();
|
|
18
13
|
};
|
|
19
14
|
|
|
20
|
-
module.exports = pulse;
|
|
15
|
+
module.exports = pulse;
|