pontarius / pontarius-xmpp

An XMPP client library for Haskell.
Other
53 stars 18 forks source link

XEP-0114: external components #95

Open singpolyma opened 8 years ago

singpolyma commented 8 years ago

Would be nice if a "session" could be created to act as an external component.

singpolyma commented 8 years ago

So, I started trying to add this, but I'm not sure what the best way to do it is with the way the xml-picklers work. XEP-0114 uses a different namespace (but all the same elements/attributes) and so it becomes {jabber:component:accept}message and {jabber:component:accept}body instead of {jabber:client}message -- which is a far more pervasive change than I had hoped.

singpolyma commented 8 years ago

The strategy used by https://hackage.haskell.org/package/network-protocol-xmpp seems to be to have a namespace attribute on the Session and use that. But that would mean that all core picklers would need to have a session or namespace argument if s2s or component protocols are to be supported...

l29ah commented 8 years ago

any updates on this?