delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

Too many connections at the sever side #127

Closed musriabhijit closed 7 years ago

musriabhijit commented 7 years ago

if i use mMeteor.connect(); in every actvity class then the connection is increasing at the server side is there any way to reuse the previous connection which we have established and if i don't use the mMeteor.connect() then in the particular actvity class we are not able to subscribe and make a call

musriabhijit commented 7 years ago

@ocram @victorjmarin @joshuaswett please help in this regard

ocram commented 7 years ago

Duplicate of https://github.com/delight-im/Android-DDP/issues/118

It's obvious that the connection count increases if you establish a new connection in every single Activity. You have to use the MeteorSingleton class instead to manage connections for you.