Java Question Websocket - Socket.io

attenzi0ne

Member
Licensed User
Longtime User
Hello guys

I need to communicate with with a node.js/socket.io server, what is the best approach?

I have found on socket.io webpage that there is a library for android but I dont know how I can use it with b4a
https://github.com/koush/AndroidAsync

Any help will be appreciated

Regards
 

javiman6969

Member
Licensed User
Longtime User
Hello guys

I need to communicate with with a node.js/socket.io server, what is the best approach?

I have found on socket.io webpage that there is a library for android but I dont know how I can use it with b4a
https://github.com/koush/AndroidAsync

Any help will be appreciated

Regards

Hello friend, good!
Earned some progress socket.io connecting to a server?

Your help would be greatly appreciated!
Thank You
 

galimpic

Member
Licensed User
Longtime User
I've made a simple wrapper for socket.io (https://github.com/socketio/socket.io-client-java) that I use for my own project, if anyone's interested. It's not complete, though - it supports connect, emit, send, disconnect & on events (with one parameter only as JSON string) - no ack & other fancy stuff, sorry. For that reason, and the lack of documentation, I will not publish it as a library, but I will gladly send it to anyone interested with short instructions - it is very easy to use. While on the topic of node.js stuff, earlier I made a complete wrapper for Meteor DDP protocol (https://github.com/delight-im/Android-DDP). If someone needs one of these let me know.
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

been searching for a socket.io lib to access Volumio running on a Raspberry Pi.

If your offer still exists - knowing this thread is 2yrs old - could you pls sent me the wrapper.

Appreciated.
 

Kirby Leeper

Member
Licensed User
Longtime User
I've made a simple wrapper for socket.io (https://github.com/socketio/socket.io-client-java) that I use for my own project, if anyone's interested. It's not complete, though - it supports connect, emit, send, disconnect & on events (with one parameter only as JSON string) - no ack & other fancy stuff, sorry. For that reason, and the lack of documentation, I will not publish it as a library, but I will gladly send it to anyone interested with short instructions - it is very easy to use. While on the topic of node.js stuff, earlier I made a complete wrapper for Meteor DDP protocol (https://github.com/delight-im/Android-DDP). If someone needs one of these let me know.
 
Top