@eleven-am/pondsocket 0.1.20 → 0.1.21
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/express.js +1 -1
- package/package.json +1 -1
- package/server/server/pondSocket.js +3 -4
package/express.js
CHANGED
|
@@ -11,7 +11,7 @@ const PondSocket = (app) => {
|
|
|
11
11
|
const server = (0, http_1.createServer)(app);
|
|
12
12
|
const pondSocket = new pondSocket_1.PondSocket(server);
|
|
13
13
|
app.upgrade = (path, handler) => pondSocket.createEndpoint(path, handler);
|
|
14
|
-
app.listen = (...args) =>
|
|
14
|
+
app.listen = (...args) => pondSocket.listen(...args);
|
|
15
15
|
return app;
|
|
16
16
|
};
|
|
17
17
|
exports.default = PondSocket;
|
package/package.json
CHANGED
|
@@ -15,11 +15,10 @@ class PondSocket {
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* @desc Specifies the port to listen on
|
|
18
|
-
* @param
|
|
19
|
-
* @param callback - the callback to call when the server is listening
|
|
18
|
+
* @param args - the arguments to pass to the server
|
|
20
19
|
*/
|
|
21
|
-
listen(
|
|
22
|
-
return this._server.listen(
|
|
20
|
+
listen(...args) {
|
|
21
|
+
return this._server.listen(...args);
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* @desc Closes the server
|