socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

Socket reuse

Open mahesh517 opened this issue 5 years ago • 2 comments

Hi ,

How to reuse one socket connection to entire app

mahesh517 avatar Jun 28 '19 14:06 mahesh517

I would recommend setting up a Service and using ServiceConnection objects in any activity you want to use your socket in.

https://developer.android.com/guide/components/bound-services

NeonDaniel avatar Sep 14 '19 01:09 NeonDaniel

extends the Application class, make a variable socket there

erlangparasu avatar Apr 27 '20 15:04 erlangparasu