netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

How can i use Netty SocketIO in Android ?

Open Iliyass opened this issue 10 years ago • 8 comments
trafficstars

Hello guys, I want to use this repo in my android app, is it possible if so, how can i adapt it to the android environment ?

Iliyass avatar May 15 '15 09:05 Iliyass

Are you sure you want to run a server in a device running Android? I mean, most of Android devices are resource constrained so my first impression is "that's not the right place for this component". Could you please elaborate about your use case scenario?

pablojr avatar May 15 '15 12:05 pablojr

The server is just for internel communication between two layers of the android application, we have a Cordova WebView, that will be used as client for socket connection, and the android native code as the server, so the cordova webview could communication to android native code, we though of a socket connection!

Iliyass avatar May 15 '15 12:05 Iliyass

Not being proficient with Cordova, it still sounds that netty-socketio is not the component you need/are looking for. Netty-socketio implements the socket.IO protocol mostly used for real-time communication betwwen a server and client(s) i.e. chat application. From your description "server is just for internel communication" it seems that you're looking for a different component though, one that just provide plain sockets. But I might be wrong.

pablojr avatar May 15 '15 12:05 pablojr

What if i want to make it a part of game app LAN only, where devices become remotes with web based interface - is it easier to do with sockets but then i have to reinvent the wheel. I have server ready on Raspberry Pi running python, but i just need to make it accessible to non tech users

Osmiogrzesznik avatar Jun 16 '20 09:06 Osmiogrzesznik

@Osmiogrzesznik I guess your use case is not suitable for netty-socketio, which is a server component and which you said you have one setup already. It looks like you're looking for a client socketio implementation which this project, netty-socketio is not.

pablojr avatar Jun 16 '20 12:06 pablojr

@pablojr If there is a server running Netty SocketIO, how does an Android device communicate directly with another client connected to the server and vice versa? What socketIO component needs to run on the Android client? The server and non Android clients will most likely be Raspberry Pi type devices.

lahirurlt avatar Aug 06 '21 19:08 lahirurlt

I'm not familiar with Android itself, but on any platform you need a Socket.IO client. It doesn't matter if the platform is Android or Raspberry devices, having a client that can handle the Socket.IO protocol, you'll be fine

pablojr avatar Aug 06 '21 20:08 pablojr

Thank you. I’m just learning about socket.io and am trying to figure out whether the Android compatible socket.io components support “direct“ client to client communication. I’ll spend more time reading the docs and get back to you. Im guessing the solution lies in “rooms” or “channels. Thank you again!

On Aug 6, 2021, at 4:46 PM, Pablo J. Rogina @.***> wrote:

 I'm not familiar with Android itself, but on any platform you need a Socket.IO client. It doesn't matter if the platform is Android or Raspberry devices, having a client that can handle the Socket.IO protocol, you'll be fine

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

lahirurlt avatar Aug 06 '21 23:08 lahirurlt