Open ptaoussanis opened 1 year ago
I think I'd like to have something like this, since I think clients should be able to subscribe to some events separately.
Here's the use case / pattern I'm considering:
I think it should be somewhat straightforward to factor out the "client-id sending" part from the "uid sending" and then call it directly, given a client-id.
Current
chsk-send!
API:(fn [event & [?timeout-ms ?cb-fn]])
(fn [user-id event])
It may be useful to add a low-level (private?) server-side method like
(fn [client-id event & [?timeout-ms ?cb-fn]])
.Uses include:
421
ws-ping
events issued by server, to mirror the new pong forws-ping
events issued by client to address #259.