parent
74da08df7b
commit
613c66b0d4
@ -672,11 +672,9 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
|
|||||||
options = options || {}
|
options = options || {}
|
||||||
|
|
||||||
this.dcID = dcID
|
this.dcID = dcID
|
||||||
this.iii = iii++
|
|
||||||
|
|
||||||
this.authKey = authKey
|
this.authKey = authKey
|
||||||
this.authKeyUint8 = convertToUint8Array(authKey)
|
this.authKeyUint8 = convertToUint8Array(authKey)
|
||||||
this.authKeyBuffer = convertToArrayBuffer(authKey)
|
|
||||||
this.authKeyID = sha1BytesSync(authKey).slice(-8)
|
this.authKeyID = sha1BytesSync(authKey).slice(-8)
|
||||||
|
|
||||||
this.serverSalt = serverSalt
|
this.serverSalt = serverSalt
|
||||||
@ -687,18 +685,15 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
|
|||||||
|
|
||||||
this.lastServerMessages = []
|
this.lastServerMessages = []
|
||||||
|
|
||||||
this.currentRequests = 0
|
|
||||||
this.checkConnectionPeriod = 0
|
this.checkConnectionPeriod = 0
|
||||||
|
|
||||||
this.sentMessages = {}
|
this.sentMessages = {}
|
||||||
this.clientMessages = []
|
|
||||||
|
|
||||||
this.pendingMessages = {}
|
this.pendingMessages = {}
|
||||||
this.pendingAcks = []
|
this.pendingAcks = []
|
||||||
this.pendingResends = []
|
this.pendingResends = []
|
||||||
this.connectionInited = false
|
this.connectionInited = false
|
||||||
|
|
||||||
this.pendingTimeouts = []
|
|
||||||
|
|
||||||
this.longPollInt = $interval(this.checkLongPoll.bind(this), 10000)
|
this.longPollInt = $interval(this.checkLongPoll.bind(this), 10000)
|
||||||
this.checkLongPoll()
|
this.checkLongPoll()
|
||||||
|
Loading…
Reference in New Issue
Block a user