New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add server->client send with cb + timeout support? #423
Labels
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
ws-ping
events issued by server, to mirror the new pong forws-ping
events issued by client to address How to detect loss of network connection client-side in Chrome #259.The text was updated successfully, but these errors were encountered: