Skip to content
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

Last Event ID #23

Open
graywolf336 opened this issue Jul 8, 2020 · 3 comments
Open

Last Event ID #23

graywolf336 opened this issue Jul 8, 2020 · 3 comments
Labels
Milestone

Comments

@graywolf336
Copy link

Does this package automatically send messages to a client based on their last event id or is that up to the person using this package?

I am attempting to figure out how to implement this, but am a little unclear about it.

@alexandrevicenzi
Copy link
Owner

No, no message is stored, thus there's no way to magically resend.

You need to implement some logic on how to store messages and send it to a client.
You would also need to store some client information or decide what logic you would use to send to a new and/or returning client.

@graywolf336
Copy link
Author

How do we get notified when a client connects and their last event id? I see where internally in the package it is stored, but I don’t see how to access when a client connects externally of the package internals...maybe I am missing something here.

@alexandrevicenzi
Copy link
Owner

That's supposed to be fixed by #16, it misses events to be registered.

So, at this moment, I think it would not be possible to do what you want. Once we fix #16 it would be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants