koush / AndroidAsync

Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.
Other
7.52k stars 1.56k forks source link

Can't connect to Socket.IO server with a endpoint. #260

Open fustalol opened 9 years ago

fustalol commented 9 years ago

Hey there, I'm using this library for socket.IO but I can't because in SocketIORequest it does:

super(Uri.parse(uri + (query == null ? "" : "?" + query)).buildUpon().encodedPath("/socket.io/1/").build().toString());

And if my server has path http:127.0.0.1:8000/api/chatserver this line removes /api/chatserver. Please fix it ASAP. Can I do something meanwhile to use It anyway?

paulpdaniels commented 9 years ago

You could replace encodedPath with appendEncodedPath. Though if I am not mistaken this is the expected behavior from the documentation.

fustalol commented 9 years ago

I know, but It's the library that has this line of code.

paulpdaniels commented 9 years ago

Why not just fork the repository and make the change and then use that directly? Do you absolutely have to have the library imported as a binary?

fustalol commented 9 years ago

A lot of people has this necessity. It's crazy that library drop my path.