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

Error Connect with Android + FireFox 52.0.2 #97

Open
fazelit opened this issue Apr 6, 2017 · 7 comments
Open

Error Connect with Android + FireFox 52.0.2 #97

fazelit opened this issue Apr 6, 2017 · 7 comments

Comments

@fazelit
Copy link

fazelit commented Apr 6, 2017

Firefox has problems with Android version 52.02.
But Firefox 52.02 computer, no problem

@ghedipunk
Copy link
Owner

What error is Firefox for Android showing?

What does the server's output show when the Android client attempts to connect?

Is there anything that you can give us beyond "it doesn't work"?

@fazelit
Copy link
Author

fazelit commented Apr 6, 2017

error:
Client connected. Resource id #14 Client disconnected. Resource id #14
in android firefox version 52.02
But pc firefox version 52.02 Not disconnect.

@ghedipunk
Copy link
Owner

That narrows it down to failing the handshake. It'll take some time before I can troubleshoot further, but I'll get on it when I can. Thanks!

@fazelit
Copy link
Author

fazelit commented Apr 13, 2017

I do the following to solve the problem:
add sleep(1); on function connect()
`

protected function connect($socket) {

$user = new $this->userClass(uniqid('u'), $socket); 

sleep(1); 

$this->users[$user->id] = $user; 

$this->sockets[$user->id] = $socket;

$this->connecting($user); 

}
`

But quickly connect comes down.
Why?
There is a better way?

@blondie101010
Copy link
Contributor

One thing is for sure, putting a sleep there (or anywhere in that code actually) will either slow everything down or prevent other connections from working.

@fazelit
Copy link
Author

fazelit commented Apr 13, 2017

I know
But what a way to connect Firefox Android?

@tomthedude
Copy link

i am having the same issue with android + chrome
on desktop + chrome wotks ok, but on android + chrome can not connect to socket, same error as above.

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