Skip to content

Commit

Permalink
Added the whisper function to the channel class.
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSearle authored Oct 25, 2023
1 parent 27add6c commit 345010d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/channel/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 345010d

Please sign in to comment.