@eleven-am/pondsocket-client 0.0.13 → 0.0.14
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 +1 -2
- package/package.json +1 -1
package/dist.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
JoinParams,
|
|
5
5
|
PayloadForResponse,
|
|
6
6
|
PondEventMap,
|
|
7
|
-
PondMessage,
|
|
8
7
|
PondPresence,
|
|
9
8
|
PresencePayload,
|
|
10
9
|
ResponseForEvent,
|
|
@@ -69,7 +68,7 @@ declare class Channel<EventMap extends PondEventMap = PondEventMap, Presence ext
|
|
|
69
68
|
* @param event - The event to send.
|
|
70
69
|
* @param payload - The message to send.
|
|
71
70
|
*/
|
|
72
|
-
sendMessage (event:
|
|
71
|
+
sendMessage<Event extends keyof EventMap> (event: Event, payload: EventMap[Event]): void;
|
|
73
72
|
|
|
74
73
|
/**
|
|
75
74
|
* @desc Sends a message to the server and waits for a response.
|