Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return status is always 0 #6

Closed
MirkoUgoliniDev opened this issue Jan 4, 2019 · 3 comments
Closed

Return status is always 0 #6

MirkoUgoliniDev opened this issue Jan 4, 2019 · 3 comments

Comments

@MirkoUgoliniDev
Copy link

Hello,

I tested the library , but seems that the result is always 0

I changenged that raw:

//return line.indexOf(""status":1") != -1;
return line.indexOf("200 OK") != -1;

now seems to work

Mirko

@MirkoUgoliniDev MirkoUgoliniDev changed the title Return status is allways 0 Return status is always 0 Jan 4, 2019
@jonmacd
Copy link

jonmacd commented Feb 11, 2019

Thanks, was wondering the same thing.
This worked for me as well.

@teHwHoly
Copy link

Hi!

Was having similar issue, for now I'm just accepting both messages, because both of them are sent as response in irregular pattern:
return ( (line.indexOf(""status":1") != -1) || (line.indexOf("200 OK") != -1) );

@soundstorm
Copy link
Member

Closed via #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants