Would you consider changing these to ks>= to allow sente to be extended in functionality by adding additional items in the map?
My use case is extending sente to allow pub/sub of message. So in addition to a ?reply-fn there might be a ?pub-fn that could be executed multiple times. The ?pub-fn would only be in an event if sent with a sub-fn (instead of the usual send-fn)
I understand this could be done in user space through slightly different means and/or slight hacks. But it would be nice to be able to call (add-pub-sub sente-map)) and then be able to use the rest of the sente functions as is.
Currently exact keyword matches are enforced for server and client event messages, via the encore function
ks=
: https://github.com/ptaoussanis/sente/blob/7d8ca800d950026a3171bdd0e438395766b8251a/src/taoensso/sente.cljc#L154https://github.com/ptaoussanis/sente/blob/7d8ca800d950026a3171bdd0e438395766b8251a/src/taoensso/sente.cljc#L165
Would you consider changing these to
ks>=
to allow sente to be extended in functionality by adding additional items in the map?My use case is extending sente to allow pub/sub of message. So in addition to a
?reply-fn
there might be a?pub-fn
that could be executed multiple times. The?pub-fn
would only be in an event if sent with asub-fn
(instead of the usualsend-fn
)I understand this could be done in user space through slightly different means and/or slight hacks. But it would be nice to be able to call
(add-pub-sub sente-map))
and then be able to use the rest of the sente functions as is.