@eleven-am/pondsocket 0.1.3 → 0.1.5
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
CHANGED
package/pondClient/socket.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class PondClient {
|
|
|
25
25
|
* @param channel - The name of the channel.
|
|
26
26
|
* @param params - The params to send to the server.
|
|
27
27
|
*/
|
|
28
|
-
createChannel(channel: string, params?: ChannelParams): Channel
|
|
28
|
+
createChannel(channel: string, params?: ChannelParams): Channel;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @desc An event that is triggered when the socket receives a message.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {ResponsePicker} from "../pondBase";
|
|
2
2
|
import {PondMessage, SendResponse} from "./types";
|
|
3
|
-
import {Channel} from "./channel";
|
|
4
3
|
|
|
5
4
|
export declare abstract class PondResponse<T extends ResponsePicker = ResponsePicker.CHANNEL> {
|
|
6
5
|
/**
|
|
@@ -24,14 +23,3 @@ export declare abstract class PondResponse<T extends ResponsePicker = ResponsePi
|
|
|
24
23
|
*/
|
|
25
24
|
abstract accept(assigns?: Partial<SendResponse<T>>): void;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
export declare class ChannelResponse extends PondResponse {
|
|
29
|
-
|
|
30
|
-
constructor(clientId: string, channel: Channel, resolver: (hasErrored: boolean) => void);
|
|
31
|
-
|
|
32
|
-
accept(assigns: Partial<SendResponse> | undefined): void;
|
|
33
|
-
|
|
34
|
-
reject(message: string | undefined, errorCode: number | undefined): void;
|
|
35
|
-
|
|
36
|
-
send(event: string, payload: PondMessage, assigns: Partial<SendResponse> | undefined): void;
|
|
37
|
-
}
|