Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Matthias Dittrich
@matthid
Or via code, like I do myself (for the same reason to be able to setup FSI)
Chet Husk
@baronfel
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
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
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
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
Well, federation shouldn't be a huge deal and should just work after XEP-0220
Chet Husk
@baronfel
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
ah if you only need the client part it should be a lot simpler :)
Chet Husk
@baronfel
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
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
that could work too, without require changes to data structures
just a Connect(ConnectInfo, int, ClientSetup) call then?
Chet Husk
@baronfel
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
Yeah that's pretty much the idea. Sorry that the docs are pretty much nonexistent :)
Chet Husk
@baronfel
did you see #2? is there any direction you'd rather me go for the port specification?
Matthias Dittrich
@matthid
yes I did. Thanks for the reminder. Currently I'm a bit busy with other things (server outage) so I'l come back to this in a few weeks as I'm currently restructuring my personal infrastructure ... Feel free to poke me again in case I forget. Your change looks good. I will keep the pr open as a reminder to make a new release...
Chet Husk
@baronfel
sorry to hear that you're underwater :( Good luck getting out from under it!