Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XMPP Framework code in AppDelegate

I'm working on implementing XMPP framework https://github.com/robbiehanson/XMPPFramework in my app,i understand there will be a lot of code "methods/delegates" from XMPPRoom, XMPPIQ, XMPPStream etc.. i need to know what's the best place to write all these code, is AppDelegate the best candidate for XMPP related code?

like image 823
user3268266 Avatar asked Sep 27 '26 17:09

user3268266


1 Answers

A good practice could be to create a XMPP singleton class. So , you can use all the public methods, properties... within other classes only calling the shared instance.

like image 108
Moral Avatar answered Sep 29 '26 11:09

Moral