Skip to content

Commit

Permalink
fix(transmit): make authorizeChannel accept boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Mar 26, 2024
1 parent e8c473b commit 94b0240
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/transmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ export class Transmit {
/**
* The secure channel store instance to store all the secure channel callbacks.
*/
#secureChannelCallbacks: Map<string, (ctx: HttpContext, params?: any) => Promise<boolean>> =
new Map()
#secureChannelCallbacks: Map<
string,
(ctx: HttpContext, params?: any) => Promise<boolean> | boolean
> = new Map()

/**
* The transport provider to synchronize messages and subscriptions
Expand Down

0 comments on commit 94b0240

Please sign in to comment.