@eleven-am/pondsocket 0.1.138 → 0.1.139
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/package.json +1 -1
- package/types.d.ts +9 -9
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -14,14 +14,14 @@ import { WebSocketServer } from 'ws';
|
|
|
14
14
|
|
|
15
15
|
export * from '@eleven-am/pondsocket-common';
|
|
16
16
|
|
|
17
|
-
interface LeaveEvent<EventTypes extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> {
|
|
17
|
+
export interface LeaveEvent<EventTypes extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> {
|
|
18
18
|
user: UserData<PresenceType, AssignType>;
|
|
19
19
|
channel: Channel<EventTypes, PresenceType, AssignType>;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
type LeaveCallback<EventTypes extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> = (event: LeaveEvent<EventTypes, PresenceType, AssignType>) => void;
|
|
22
|
+
export type LeaveCallback<EventTypes extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> = (event: LeaveEvent<EventTypes, PresenceType, AssignType>) => void;
|
|
23
23
|
|
|
24
|
-
declare class AbstractRequest<Path extends string, PresenceType extends PondPresence, AssignType extends PondAssigns> {
|
|
24
|
+
export declare class AbstractRequest<Path extends string, PresenceType extends PondPresence, AssignType extends PondAssigns> {
|
|
25
25
|
event: PondEvent<Path>;
|
|
26
26
|
|
|
27
27
|
channelName: string;
|
|
@@ -31,13 +31,13 @@ declare class AbstractRequest<Path extends string, PresenceType extends PondPres
|
|
|
31
31
|
presence: Record<string, PresenceType>;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
declare class EventRequest<Path extends string, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> extends AbstractRequest<Path, PresenceType, AssignType> {
|
|
34
|
+
export declare class EventRequest<Path extends string, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> extends AbstractRequest<Path, PresenceType, AssignType> {
|
|
35
35
|
user: UserData<PresenceType, AssignType>;
|
|
36
36
|
|
|
37
37
|
channel: Channel;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
declare class EventResponse<EventType extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> {
|
|
40
|
+
export declare class EventResponse<EventType extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> {
|
|
41
41
|
/**
|
|
42
42
|
* @desc Whether the server has responded to the request
|
|
43
43
|
*/
|
|
@@ -129,7 +129,7 @@ declare class EventResponse<EventType extends PondEventMap = PondEventMap, Prese
|
|
|
129
129
|
closeChannel (reason: string): void;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
declare class Endpoint {
|
|
132
|
+
export declare class Endpoint {
|
|
133
133
|
/**
|
|
134
134
|
* @desc Adds a new PondChannel to this path on this endpoint
|
|
135
135
|
* @param path - The path to add the channel to
|
|
@@ -241,7 +241,7 @@ export declare class Channel<EventType extends PondEventMap = PondEventMap, Pres
|
|
|
241
241
|
updatePresence (userId: string, presence: PresenceType): void;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
declare class JoinRequest<Path extends string, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> extends AbstractRequest<Path, PresenceType, AssignType> {
|
|
244
|
+
export declare class JoinRequest<Path extends string, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> extends AbstractRequest<Path, PresenceType, AssignType> {
|
|
245
245
|
joinParams: JoinParams;
|
|
246
246
|
|
|
247
247
|
user: UserData<PresenceType, AssignType>;
|
|
@@ -249,7 +249,7 @@ declare class JoinRequest<Path extends string, PresenceType extends PondPresence
|
|
|
249
249
|
channel: Channel;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
declare class JoinResponse<EventType extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> {
|
|
252
|
+
export declare class JoinResponse<EventType extends PondEventMap = PondEventMap, PresenceType extends PondPresence = PondPresence, AssignType extends PondAssigns = PondAssigns> {
|
|
253
253
|
/**
|
|
254
254
|
* @desc Whether the server has responded to the request
|
|
255
255
|
*/
|
|
@@ -305,7 +305,7 @@ declare class JoinResponse<EventType extends PondEventMap = PondEventMap, Presen
|
|
|
305
305
|
trackPresence (presence: PresenceType): JoinResponse;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
declare class ConnectionResponse {
|
|
308
|
+
export declare class ConnectionResponse {
|
|
309
309
|
/**
|
|
310
310
|
* @desc Whether the server has responded to the request
|
|
311
311
|
*/
|