@eleven-am/pondsocket-express 0.0.16 → 0.0.17

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -7
  2. package/index.js +1 -5
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,9 +1,5 @@
1
1
  import type { ConnectionResponse, Endpoint, PondPath, IncomingConnection } from '@eleven-am/pondsocket/types';
2
2
  import { Express } from 'express';
3
- interface Options {
4
- redisUrl?: string;
5
- db?: number;
6
- }
7
3
  declare global {
8
4
  namespace Express {
9
5
  interface Application {
@@ -33,9 +29,7 @@ interface PondSocketExpressApp extends Express {
33
29
  /**
34
30
  * @desc Creates a pond socket server
35
31
  * @param app - The Express app to be used by the server
36
- * @param redisUrl - The redis url to be used by the server
37
- * @param db - The db number to be used by the server
38
32
  * @constructor
39
33
  */
40
- declare const pondSocket: (app: Express, { redisUrl, db }?: Options) => PondSocketExpressApp;
34
+ declare const pondSocket: (app: Express) => PondSocketExpressApp;
41
35
  export default pondSocket;
package/index.js CHANGED
@@ -8,16 +8,12 @@ const pondsocket_1 = __importDefault(require("@eleven-am/pondsocket"));
8
8
  /**
9
9
  * @desc Creates a pond socket server
10
10
  * @param app - The Express app to be used by the server
11
- * @param redisUrl - The redis url to be used by the server
12
- * @param db - The db number to be used by the server
13
11
  * @constructor
14
12
  */
15
- const pondSocket = (app, { redisUrl, db } = {}) => {
13
+ const pondSocket = (app) => {
16
14
  const server = (0, http_1.createServer)(app);
17
15
  const pondSocket = new pondsocket_1.default({
18
16
  server,
19
- redisUrl,
20
- db,
21
17
  });
22
18
  app.upgrade = (path, handler) => pondSocket.createEndpoint(path, handler);
23
19
  app.listen = (...args) => pondSocket.listen(...args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket-express",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
@@ -29,7 +29,7 @@
29
29
  "pipeline": "npm run lint && npm run build && npm run push"
30
30
  },
31
31
  "dependencies": {
32
- "@eleven-am/pondsocket": "^0.1.166"
32
+ "@eleven-am/pondsocket": "^0.1.169"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/jest": "^29.5.12",