@eleven-am/pondsocket 0.1.120 → 0.1.121
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 +8 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -488,6 +488,14 @@ export declare class Channel {
|
|
|
488
488
|
*/
|
|
489
489
|
broadcastMessage (event: string, payload: PondMessage): void;
|
|
490
490
|
|
|
491
|
+
/**
|
|
492
|
+
* @desc Broadcasts a message to every client in the channel except the sender,
|
|
493
|
+
* @param userId - The id of the user to send the message from.
|
|
494
|
+
* @param event - The event to send.
|
|
495
|
+
* @param payload - The message to send.
|
|
496
|
+
*/
|
|
497
|
+
broadcastMessageFromUser (userId: string, event: string, payload: PondMessage): void;
|
|
498
|
+
|
|
491
499
|
/**
|
|
492
500
|
* @desc Sends a message to a specific client in the channel.
|
|
493
501
|
* @param userId - The id of the user to send the message to.
|