Message format #3
Replies: 2 comments 2 replies
-
I support that since WebDAV is based on XML, XML would be a good choice because clients can use their existing parsers/libraries for Push, too. Existing ideas about such push messages:
My original idea was to send a list of topics/subscription IDs, encapsulated in XML, something like
Because push messages could/should be aggregated (for instance because they are only sent every minute to avoid flooding), it should be a list. |
Beta Was this translation helpful? Give feedback.
-
I would rather send the href of the resource that has changed, not the containing collection. Sending the collection means that the client needs to:
This basically means that a client has to do a "full sync" when a single item changes. Also, I don't think we'd have a concept of "subscription id" when using WebSocket. |
Beta Was this translation helpful? Give feedback.
-
When the server pushes notifications to the client, it'll have to send a specific payload.
I'm opening this issue with the intent of discussing and agreeing on the format for this payload.
I think that using XML is probably the best choice. That's really a sentence I never though I'd write (I'm not a huge fan of XML), but I think it's the logical choice given that CalDav is already using XML. Any client can be expected to be able to parse and handle this already, and an extension to CalDav should really just use the same underlying format.
In particular, I think that the message that servers "push" to clients, could include a payload very similar to the result of a
PROPFIND
querying theetag
for the element that has changed:This tells the client which resource has changed and is enough for the client determine what course of action they want to take (usually, fetch the updated resource).
Aggregation of multiple entries (e.g.: multiple
response
nodes with a differenthref
each) should be perfectly valid.Beta Was this translation helpful? Give feedback.
All reactions