@eleven-am/pondsocket 0.1.24 → 0.1.26

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PondSocket, PondChannel as Channel } from './types';
1
+ import { PondSocket, PondChannel } from './types';
2
2
 
3
3
  export default PondSocket;
4
- export { Channel };
4
+ export { PondChannel };
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Channel = void 0;
3
+ exports.PondChannel = void 0;
4
4
  const pondChannel_1 = require("./server/pondChannel/pondChannel");
5
- Object.defineProperty(exports, "Channel", { enumerable: true, get: function () { return pondChannel_1.PondChannel; } });
5
+ Object.defineProperty(exports, "PondChannel", { enumerable: true, get: function () { return pondChannel_1.PondChannel; } });
6
6
  const pondSocket_1 = require("./server/server/pondSocket");
7
7
  exports.default = pondSocket_1.PondSocket;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
@@ -139,7 +139,6 @@ describe('endpoint', () => {
139
139
  event: 'TEST',
140
140
  payload: {},
141
141
  };
142
- console.log(JSON.stringify(message, null, 2));
143
142
  const { socket, server, createPondChannel } = createPondSocket();
144
143
  expect(server).toBeDefined();
145
144
  const endpoint = socket.createEndpoint('/api/:room', (_, res) => {
package/types.d.ts CHANGED
@@ -463,7 +463,7 @@ declare class Endpoint {
463
463
  * @param channel - The channel to add
464
464
  *
465
465
  * @example
466
- * endpoint.useChannel('/chat', pondChannelInstance);
466
+ * endpoint.addChannel('/chat', pondChannelInstance);
467
467
  */
468
468
  addChannel (path: PondPath, channel: PondChannel): void;
469
469
 
@@ -538,4 +538,3 @@ declare class PondSocket {
538
538
  * @constructor
539
539
  */
540
540
  declare const PondSocketFromExpress: (app: Express) => PondSocketExpressApp;
541
-