Replies: 1 comment
-
|
You could certainly write an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was having an idle daydream: can I reliably represent XMPP schemas as Capn Proto schemas?
XMPP streams are kind of weird in that they are an unbounded, streaming XML "document" end-to-end, but the messages in the middle are reasonably well-specified. Whether the protocol can be translated to Capn Proto is interesting, but I'm just concerned with message types for now.
https://xmpp.org/extensions/
Here is an example of a typical message/packet/object you might encounter. A Multi User Chat (MUC) Token Invite.
Here is another, a query for a server's roster
In XMPP, you have these common envelope types, and then things get increasingly more eXtensible in the inner parts of the tree. Implementations should adhere to a minimum standard of conformity, and can ignore certain extensions. Implementations can tell each other about extensions, too.
But really, at first, I'm concerned with serialization. If I can't reliably use the standard Capn Proto code generators to serialize these objects, it's a no go.
For those familiar with XML, XMPP, and Capn Proto: do you think Capn Proto's schema language could represent something like this? I'm new to Capn Proto.
Beta Was this translation helpful? Give feedback.
All reactions