@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 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) => server.listen(...args);
14
+ app.listen = (...args) => pondSocket.listen(...args);
15
15
  return app;
16
16
  };
17
17
  exports.default = PondSocket;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
@@ -15,11 +15,10 @@ class PondSocket {
15
15
  }
16
16
  /**
17
17
  * @desc Specifies the port to listen on
18
- * @param port - the port to listen on
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(port, callback) {
22
- return this._server.listen(port, callback);
20
+ listen(...args) {
21
+ return this._server.listen(...args);
23
22
  }
24
23
  /**
25
24
  * @desc Closes the server