socket.io server in android app example using netty-socketio
just turn on emulator. if you are not install HAXM, install it and re-run emulator
in this app, socket.io server is using port 9092. so to connect server on emulator, port forward to emulator
cd `[ANDROID SDK PATH]`/platform-tools/
adb forward tcp:9092 tcp:9092
application is run server automatically. (server initialize code is in MainActivity. it is just example code XD) and if you are terminate emulator, re-forward port is required.
client is required npm library.
- execute yarn (or npm install) to install socket.io library
- command
node client
will return echo chatevent argument.