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

29th
Sep 2016
Chet Husk
@baronfel
Sep 29 2016 19:14
AH-HAH
ok, finally figured out my problems
I'm acting as a client and using the XmppClient.Connect(ConnectInfo, ClientSetup) overload
this function uses the normal XMPP ports by default!
and I need to override these ports to connect to Google's servers, so I have to use the overload with AdvancedConnectInfo
Matthias Dittrich
@matthid
Sep 29 2016 19:23
ah if you only need the client part it should be a lot simpler :)
Chet Husk
@baronfel
Sep 29 2016 19:24
the biggest problem right now is that the port is hardcoded on both the advancedconnectinfo and the connectinfo
so I'm going to PR a change to those structures to make the port settable, with the defaults you already have
Matthias Dittrich
@matthid
Sep 29 2016 19:33
https://github.com/matthid/Yaaf.Xmpp.Runtime/blob/5533423b30b041a8b6810b286bec497308c6b9a7/src/source/Yaaf.Xmpp.Runtime/ClientServer/XmppClient.fs I think copying the static Connect method and replacing the resolve call should work as well...
Chet Husk
@baronfel
Sep 29 2016 19:34
that could work too, without require changes to data structures
just a Connect(ConnectInfo, int, ClientSetup) call then?
Chet Husk
@baronfel
Sep 29 2016 20:25
ah, I begin to see! once we're connected, we're supposed to use the client to request instances of Services, and the services are where the custom logic goes. And in a general sense, a service should request a Stanza Service and then perform work on complete stanzas as they come in the pipeline
the IM service is an excellent example to follow
Matthias Dittrich
@matthid
Sep 29 2016 21:39
Yeah that's pretty much the idea. Sorry that the docs are pretty much nonexistent :)