android-websockets icon indicating copy to clipboard operation
android-websockets copied to clipboard

websocketclient.handler can not be resolved

Open rohitshinde opened this issue 12 years ago • 2 comments

when i added your code then showing me following error : - websocketclient.handler can not be resolved i already import classes as needed. error

rohitshinde avatar Oct 23 '13 05:10 rohitshinde

Hi, I also just had the same problem. The example code is incorrect. you will need to call it as such:

final WebSocketClient client = new WebSocketClient(URI.create("wss://irccloud.com"), new WebSocketClient.Listener() { //etc. } 

Notice it isn't making a new Handler but rather a Listener. It amounts to the same thing.

WashRinseRepeat avatar Aug 21 '14 04:08 WashRinseRepeat

See #13.

kelunik avatar Feb 12 '15 02:02 kelunik