Good to know you got it working. Can you share how you fixed it for the benefit of those who come after?
Best regards Steve On Mon, Apr 3, 2017 at 11:02 AM, Tim Gallagher <[email protected]> wrote: > Steve, > > I'll keep those things in mind. I have since fixed this issue. > > Tim > > On Mon, Apr 3, 2017 at 11:55 AM, Steve Hannah < > [email protected]> wrote: > >> Please don't open old threads. Better to start a new thread with your >> issue. In the new thread, please include relevant portions of the server >> error log from your build. Also ensure that you are using the latest >> version of the websocket lib. >> >> Best regards >> >> Steve >> >> On Sat, Apr 1, 2017 at 1:06 PM, <[email protected]> wrote: >> >>> I'm actually using it like as the code below and I'm still getting this >>> error when building for iOS. The Android build works just fine. >>> >>> public static void getWebService(ClientResponseCallback callback, >>> String url) { >>> WebSocket sock = new WebSocket(url) { >>> >>> @Override >>> protected void onOpen() { >>> >>> } >>> >>> @Override >>> protected void onClose(int statusCode, String reason) { >>> >>> } >>> >>> @Override >>> protected void onMessage(final String message) { >>> System.out.println("Received message "+message); >>> Display.getInstance().callSerially(new Runnable() { >>> >>> public void run() { >>> callback.onClientMessage(message); >>> } >>> >>> }); >>> } >>> >>> @Override >>> protected void onError(Exception ex) { >>> Display.getInstance().callSerially(new Runnable() { >>> >>> public void run() { >>> callback.onClientError(ex); >>> } >>> >>> }); >>> >>> } >>> >>> @Override >>> protected void onMessage(byte[] message) { >>> >>> } >>> >>> }; >>> sock.connect(); >>> } >>> >>> >>> On Monday, August 15, 2016 at 10:21:05 PM UTC-6, Shai Almog wrote: >>>> >>>> Do you use the WebSocket class from code? >>>> These errors happen if the native code includes a Java class but the VM >>>> stripped it out because it is unused. >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "CodenameOne Discussions" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> Visit this group at https://groups.google.com/grou >>> p/codenameone-discussions. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/codenameone-discussions/1334a8b9-72a6-45c8-85ea-649c585a >>> 7aff%40googlegroups.com >>> <https://groups.google.com/d/msgid/codenameone-discussions/1334a8b9-72a6-45c8-85ea-649c585a7aff%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Steve Hannah >> Software Developer >> Codename One >> http://www.codenameone.com >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "CodenameOne Discussions" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/codenameone-discussions/6_l2mYN0caI/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> Visit this group at https://groups.google.com/grou >> p/codenameone-discussions. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/codenameone-discussions/CAGOYrKVph0GGJGiM5%3DCAMRA6MmXL_ >> QiQp%3Db8D6%3DLEpj2bacH%3Dg%40mail.gmail.com >> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVph0GGJGiM5%3DCAMRA6MmXL_QiQp%3Db8D6%3DLEpj2bacH%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/ > group/codenameone-discussions. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/codenameone-discussions/CAATsE9Ppu5JZbtfbbW7O7LzqNbiFj > %2BWpcnnkEUshwP0dOrBMZA%40mail.gmail.com > <https://groups.google.com/d/msgid/codenameone-discussions/CAATsE9Ppu5JZbtfbbW7O7LzqNbiFj%2BWpcnnkEUshwP0dOrBMZA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUjpO0QnQtwWXhe5YCCfEW5AZ4n5L6bPy0YqratnUXe7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
