@@ -126,7 +126,6 @@ export class AMTRedirector implements ICommunicator {
126126 // Using this generic signature allows us to pass the WebSocket type from unit tests or in production from a web browser
127127 this . connectState = 0
128128 // let ws = new c(this.getWsLocation()) // using create function c invokes the constructor WebSocket()
129- // eslint-disable-next-line new-cap
130129 this . socket = new c ( this . getWsLocation ( ) , this . authToken ) // The "p=2" indicates to the relay that this is a REDIRECTION session
131130 this . socket . onopen = this . onSocketConnected . bind ( this )
132131 this . socket . onmessage = this . onMessage . bind ( this )
@@ -342,15 +341,13 @@ export class AMTRedirector implements ICommunicator {
342341 curptr += noncelen + 1
343342
344343 // QOP
345- let qoplen = 0
346344 let qop = ''
347345 const cnonce : string = this . generateRandomNonce ( 32 )
348346 const snc = '00000002'
349347 let extra = ''
350348 if ( authType === 4 ) {
351- qoplen = authDataBuf . charCodeAt ( curptr )
349+ const qoplen = authDataBuf . charCodeAt ( curptr )
352350 qop = authDataBuf . substring ( curptr + 1 , curptr + 1 + qoplen )
353- curptr += qoplen + 1
354351 extra = `${ snc } :${ cnonce } :${ String ( qop ) } :`
355352 }
356353
@@ -435,7 +432,6 @@ export class AMTRedirector implements ICommunicator {
435432 TypeConverter . IntToStrX ( this . amtSequence ++ ) +
436433 String . fromCharCode ( 0x00 , 0x00 , 0x1b , 0x00 , 0x00 , 0x00 )
437434 )
438- // eslint-disable-next-line @typescript-eslint/no-implied-eval, @typescript-eslint/no-unsafe-argument
439435 if ( this . protocol === 1 ) {
440436 this . amtKeepAliveTimer = setInterval ( this . sendAmtKeepAlive . bind ( this ) , 2000 )
441437 }
0 commit comments