Closed ollyde closed 9 years ago
It would seem the error is here:
//at io.socket.engineio.client.transports.WebSocket.doOpen(WebSocket.java:53)
Request.Builder builder = new Request.Builder().url(uri());
This creates a null URI only on RoboVM.
//at com.squareup.okhttp.Request$Builder.url(Request.java:147)
if (url == null) throw new IllegalArgumentException("url == null");
I'd like to download the library and modify it but that's broken too.
Fellow RovoVM user here! Why not just use a String, at least for now?
I did try lots of variations of strings with no success, exactly the same error.
I even tried manually building a URI
URI uri = new URI("http", "", "192.168.1.11", 9999, "/", "", null);
Still gives the same error :-(
Have you tried stepping through the part where it crashes using the debugger? (if you have the paid version)
I got a feeling it will lead me too the same stack trace though, it seems no matter what I put when creating a new socket in this library it crashes for iOS.
I'd like to download the library and modify it but I spent all morning just trying to get it working with no success.
Any ideas?
Just put a breakpoint just before the problem, and click the debug button. It integrates with the IDE's debugger, at least on IntelliJ.
I've submitted a cross platform app example that works on Desktop, Android but not IOS here: https://github.com/voidstarfire/LibGDX-SocketIO-with-Node/tree/master
Wouldn't this be more of an issue of RoboVM not properly generating the iOS?
Also, on what arch are you running the iOS one on? It could be a problem with that specific architecture.
archs = 'arm64:thumbv7'
Flagged an issue here. https://github.com/robovm/robovm/issues/1153
It seems to be an issue with the web sockets class in this library but I can't figure it out. I've made a test application here: https://github.com/voidstarfire/LibGDX-SocketIO-with-Node/tree/master
See Stefan's response to this thread and see if that fixes your problem https://groups.google.com/forum/#!topic/robovm/m3XC_LdBVpU
Fixed in RoboVM 1.9
@voidstarfire :+1: great
I'm using this excellent implementation of sockets for my cross-platform projects, keep up the good work!
BUT! I know there's no real support for it and it's probably not in you're scope but my problem is I'm using RoboVM to compile my Java code into machine code for iOS, everything works perfect except something is broken on the connection with this library.
I'm using this implementation
I get the following error:
If anyone would have any ideas? tried compiling with: