socket.io-android-chat icon indicating copy to clipboard operation
socket.io-android-chat copied to clipboard

failed to connect

Open Al-Hussein-96 opened this issue 6 years ago • 5 comments

after clone this repository, I thought it should work without modifying anything and I can login to chat with socket.io but after install app and run it on my device it start to display this error (Failed to connect) and I cannot to join with my nick name , anyone have idea why this app don't work and what I must change in the code for work correctly ?

Al-Hussein-96 avatar Jan 10 '19 10:01 Al-Hussein-96

I have the same issue. After cloning the repo I had to fix a whole bunch of react-native related resource not found error, only to find the app still isn't working. I got stuck on the initial log on screen. Upon investigation I found the app isn't connecting to either the default url or the node socket.io chat sample(https://github.com/socketio/socket.io/tree/master/examples/chat). Code steps through without any errors, but the Emitter.Listener handler isn't firing at all.

Any help will be greatly appreciated.

binjiezhao avatar Jun 17 '20 00:06 binjiezhao

Also having this problem :(

chrissyast avatar Nov 15 '20 16:11 chrissyast

Same here, project seems to me quite outdated, old android support libs. After fixing all problems - I got onto Login screen, but app is basically not responding to Join button. Hmm. Url provided in demo https://socket-io-chat.now.sh is out of order.

fanysoft avatar Mar 16 '21 11:03 fanysoft

This repo still using the early version of the socket.io-client.

if it helps anyone: make sure you update build.gradle(app or module) compile ('io.socket:socket.io-client:0.8.3') { to compile ('io.socket:socket.io-client:2.0.1') {

moorthi07 avatar Sep 17 '21 04:09 moorthi07

Please read below comment. https://github.com/nkzawa/socket.io-android-chat/issues/117#issuecomment-1168605716

vingorius avatar Aug 02 '23 06:08 vingorius