mux: design API for matching and handling IQs by payload. #18

Closed
opened 2020-02-11 06:26:35 +00:00 by SamWhited · 1 comment
Owner

The mellium.im/xmpp/mux package exists as a bare bones multiplexer that can be used to handle different stanzas and other top level elements. It works well enough for most payloads, but falls down when matching IQs which likely should have a different handler per IQ payload namespace instead of matching only on the top level IQ start element.

This issue is to discuss designing an API for matching based on IQ payloads instead of top level elements.

Design doc: https://mellium.im/design/18_iqmux

The [`mellium.im/xmpp/mux`] package exists as a bare bones multiplexer that can be used to handle different stanzas and other top level elements. It works well enough for most payloads, but falls down when matching IQs which likely should have a different handler per IQ payload namespace instead of matching only on the top level IQ start element. This issue is to discuss designing an API for matching based on IQ payloads instead of top level elements. **Design doc:** https://mellium.im/design/18_iqmux [`mellium.im/xmpp/mux`]: https://pkg.go.dev/mellium.im/xmpp/mux
Author
Owner
Superseded by https://mellium.im/design/25_stanzamux (#25)
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mellium/xmpp#18
No description provided.