@eleven-am/pondsocket-client 0.0.7 → 0.0.8
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/dist.d.ts +3 -9
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/package.json +1 -1
package/dist.d.ts
CHANGED
|
@@ -6,17 +6,11 @@ import {
|
|
|
6
6
|
PondMessage,
|
|
7
7
|
EventWithResponse,
|
|
8
8
|
PayloadForResponse,
|
|
9
|
-
ResponseForEvent,
|
|
9
|
+
ResponseForEvent,
|
|
10
|
+
Unsubscribe,
|
|
11
|
+
ChannelState,
|
|
10
12
|
} from '@eleven-am/pondsocket-common';
|
|
11
13
|
|
|
12
|
-
export enum ChannelState {
|
|
13
|
-
IDLE = 'IDLE',
|
|
14
|
-
JOINING = 'JOINING',
|
|
15
|
-
JOINED = 'JOINED',
|
|
16
|
-
STALLED = 'STALLED',
|
|
17
|
-
CLOSED = 'CLOSED',
|
|
18
|
-
}
|
|
19
|
-
|
|
20
14
|
declare class Channel<EventMap extends PondEventMap = PondEventMap> {
|
|
21
15
|
/**
|
|
22
16
|
* @desc Gets the current connection state of the channel.
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -3,6 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChannelState = void 0;
|
|
6
7
|
const client_1 = __importDefault(require("./browser/client"));
|
|
7
8
|
const node_1 = __importDefault(require("./node/node"));
|
|
9
|
+
const pondsocket_common_1 = require("@eleven-am/pondsocket-common");
|
|
10
|
+
Object.defineProperty(exports, "ChannelState", { enumerable: true, get: function () { return pondsocket_common_1.ChannelState; } });
|
|
8
11
|
exports.default = typeof window === 'undefined' ? node_1.default : client_1.default;
|