Skip to content

Commit

Permalink
fix: Added changes to override the commandTimeout caps to resolve iss…
Browse files Browse the repository at this point in the history
…ues with default time out of 5s (#9)

Co-authored-by: Bipin Kumar Chaurasia <bipin@mplgaming.com>
  • Loading branch information
bipin-k and Bipin Kumar Chaurasia authored Jul 20, 2023
1 parent dfad3de commit e67cd5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ type AltUnityResponse = {
type ClientOpts = {
host?: string
port?: number
log: any
log: any,
commandTimeout?: number
}

export class AltUnityError extends Error {
Expand Down Expand Up @@ -127,7 +128,8 @@ export default class AltUnityClient {
this.conn = new Connection({
log: opts.log,
port: opts.port,
host: opts.host
host: opts.host,
commandTimeout: opts.commandTimeout
})
this.log = opts.log
this.cameraBy = AltBy.NAME
Expand Down

0 comments on commit e67cd5b

Please # to comment.