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 <berend@animo.id>
  • Loading branch information
berendsliedrecht authored and TimoGlastra committed Feb 8, 2022
1 parent 3748131 commit 8ece5a3
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 8ece5a3

Please sign in to comment.