@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 +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
- package/server/endpoint/endpoint.test.js +0 -1
- package/types.d.ts +1 -2
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PondChannel = void 0;
|
|
4
4
|
const pondChannel_1 = require("./server/pondChannel/pondChannel");
|
|
5
|
-
Object.defineProperty(exports, "
|
|
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
|
@@ -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.
|
|
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
|
-
|