mobile-websocket-example icon indicating copy to clipboard operation
mobile-websocket-example copied to clipboard

Socket is not connected properly

Open varungoyal345 opened this issue 9 years ago • 0 comments

Issue faced in this library :-

When I write the correct port number, no method is called like onOpen(), onMessage() therefore, we cannot determine whether socket connection is established or not. However, I try to crosscheck by putting the wrong port number, for instance 3005 in place of 3000, then the control falls under onError() method and the above message comes under log.

failed to connect to /112.196.1.218 (port 3005): connect failed: EHOSTUNREACH (No route to host).

I am unable to figure out then, why no method is called when the correct port number is written down.

varungoyal345 avatar Jun 08 '16 04:06 varungoyal345