[swift-users] Problem about deleting Swift::Client

Junyuan Hong jyhong836 at gmail.com
Thu Jul 30 09:30:10 UTC 2015


Hi,

Thanks for replies. It’s very helpful for running multiple client. 

But why do you only allow one client login in Swift? As I use Message app at Mac, Message allows multiple XMPP account login at same time.

If I use multiple clients, should I be careful about something?

Hong
jyhong836 at gmail.com




> On Jul 30, 2015, at 5:05 PM, Kevin Smith <kevin.smith at isode.com> wrote:
> 
> Hi Hong,
> 
> On 29 Jul 2015, at 03:00, Junyuan Hong <jyhong836 at gmail.com> wrote:
>> I’m using Swiften writing a chat client. Does Swiften support multi-Client connection in one SimpleEventLoop? And it seems dangerous to delete a Swift::Client instance at the connected status, what’s the correct way to delete a Swift::Client instance?
> 
> As Tobias said, you shouldn’t delete the Client instances until they’ve disconnected and emitted the signal to say so. Also, yes: you can run multiple clients with a single EventLoop.
> 
> /K



More information about the swift-users mailing list