From 345010d5d72c9c670792fdbfbeb4621d99d15988 Mon Sep 17 00:00:00 2001 From: Liam Searle Date: Wed, 25 Oct 2023 12:08:32 +0200 Subject: [PATCH] Added the whisper function to the channel class. --- src/channel/channel.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/channel/channel.ts b/src/channel/channel.ts index 4cb441a6..570b8754 100644 --- a/src/channel/channel.ts +++ b/src/channel/channel.ts @@ -12,6 +12,11 @@ export abstract class Channel { */ abstract listen(event: string, callback: Function): Channel; + /** + * Whisper a client event on the channel instance. + */ + abstract whisper(event: string, data: object): Channel; + /** * Listen for a whisper event on the channel instance. */