These are chat archives for matthid/Yaaf.Xmpp.Runtime

28th
Sep 2016
Chet Husk
@baronfel
Sep 28 2016 18:57
Hi! I'm trying to use this library to connect to google's firebase XMPP server, and I'm struggling a bit about how to get started. I'd like to keeps tumbling around it to learn more, but I noticed that there's some logging in the library and I couldn't see how to enable it. How might this be done?
Matthias Dittrich
@matthid
Sep 28 2016 19:25
Yaaf.Logging is a simple abstraction over the .net TraceSource (System.Diagnostics) logging so you can either enable logging as usual via app.config. Or take a look here: https://github.com/matthid/Yaaf.Xmpp.Server/blob/develop/src/source/Yaaf.Xmpp.Server/LoggingHelper.fs
Chet Husk
@baronfel
Sep 28 2016 19:25
ah, ok. So since I'm running in FSI I'd need to go add to the app.config for fsharpi. cool, thanks
Matthias Dittrich
@matthid
Sep 28 2016 19:26
Or via code, like I do myself (for the same reason to be able to setup FSI)
Chet Husk
@baronfel
Sep 28 2016 19:26
even better! console is just what I need. I'm experimenting in fsx to see if I can do what I need with this, so I hadn't made full projects yet
ah, so the intent with Yaaf.XMPP.Server is a readily-clonable server setup?
Matthias Dittrich
@matthid
Sep 28 2016 19:30
Basically, in fact that's almost how I deploy my personal instance :)
The idea is that you can "plug together" your server with the plugins you want (some plugins might require others): https://github.com/matthid/Yaaf.Xmpp.Server/blob/develop/src/source/Yaaf.Xmpp.Server/XmppServerConfig.fs#L291
Chet Husk
@baronfel
Sep 28 2016 19:35
make sense, just working through how this might all work. My server effectively just needs to be a client of the official google server so that I can retrieve messages from them
Matthias Dittrich
@matthid
Sep 28 2016 19:36
Oh, I think I never managed to finish server federation or the server dialback XEP http://xmpp.org/extensions/xep-0220.html
Matthias Dittrich
@matthid
Sep 28 2016 19:43
Well, federation shouldn't be a huge deal and should just work after XEP-0220