@eleven-am/pondsocket 0.1.41 → 0.1.42
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/server/channel/eventResponse.js +1 -0
- package/types.d.ts +1 -1
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ class EventResponse extends abstractResponse_1.PondResponse {
|
|
|
22
22
|
*/
|
|
23
23
|
accept(assigns) {
|
|
24
24
|
this._manageAssigns(assigns);
|
|
25
|
+
this._engine.sendMessage('channel', [this._event.sender], this._event.action, this._event.event, this._event.payload);
|
|
25
26
|
this._hasExecuted = true;
|
|
26
27
|
return this;
|
|
27
28
|
}
|
package/types.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export declare class Channel {
|
|
|
166
166
|
* @param payload - The message to send.
|
|
167
167
|
* @param recipient - The clients to send the message to.
|
|
168
168
|
*/
|
|
169
|
-
public sendMessage(event: string, payload: PondMessage, recipient
|
|
169
|
+
public sendMessage(event: string, payload: PondMessage, recipient: string[]): void;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* @desc Broadcasts a message to every other client in the channel except yourself.
|