vk-fast-longpoll
Advanced tools
Comparing version 2.0.13 to 2.0.14
@@ -84,5 +84,22 @@ 'use strict'; | ||
{ | ||
console.error(body); | ||
this._lpi.ts = body.ts; | ||
process.nextTick(this.listen.bind(this)); | ||
switch(parseInt(body.failed)) | ||
{ | ||
case 1: | ||
this._lpi.ts = body.ts; | ||
process.nextTick(this.listen.bind(this)); | ||
break; | ||
case 2: | ||
process.nextTick(this.start.bind(this)); | ||
break; | ||
case 3: | ||
this._lpStarted = false; | ||
process.nextTick(this.start.bind(this)); | ||
break; | ||
case 4: | ||
console.error('Передан недопустимый номер версии в параметре version'); | ||
break; | ||
default: | ||
console.error(body); | ||
break; | ||
} | ||
return; | ||
@@ -89,0 +106,0 @@ } |
@@ -128,3 +128,3 @@ { | ||
}, | ||
"version": "2.0.13" | ||
"version": "2.0.14" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26258
841