Skip to content

Commit 0281521

Browse files
committed
Update connection.ts
1 parent 1cd20ea commit 0281521

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/connection.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ export class Connection {
301301
async subscribeMessage<Result>(
302302
callback: (result: Result) => void,
303303
subscribeMessage: MessageBase,
304-
options?: { resubscribe?: boolean; preCheck?: () => Promise<boolean> },
304+
options?: {
305+
resubscribe?: boolean;
306+
preCheck?: () => boolean | Promise<boolean>;
307+
},
305308
): Promise<SubscriptionUnsubscribe> {
306309
if (this._queuedMessages) {
307310
await new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)