Skip to content

Commit

Permalink
feat(core): added timeOut to the module level (#603)
Browse files Browse the repository at this point in the history
* fix(core): added timeOut to the module level

Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht authored Jan 21, 2022
1 parent 9c96518 commit 09950c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/modules/connections/ConnectionsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ export class ConnectionsModule {
return connectionRecord
}

public async returnWhenIsConnected(connectionId: string): Promise<ConnectionRecord> {
return this.connectionService.returnWhenIsConnected(connectionId)
public async returnWhenIsConnected(connectionId: string, options?: { timeoutMs: number }): Promise<ConnectionRecord> {
return this.connectionService.returnWhenIsConnected(connectionId, options?.timeoutMs)
}

/**
Expand Down

0 comments on commit 09950c7

Please sign in to comment.