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

Storing the last event id to cookie #40

Open
flowersinthesand opened this issue May 11, 2012 · 3 comments
Open

Storing the last event id to cookie #40

flowersinthesand opened this issue May 11, 2012 · 3 comments

Comments

@flowersinthesand
Copy link
Owner

Inspired from https://groups.google.com/d/msg/jquery-socket/oudUrEfO0HM/gzwcyniNKKYJ and #38.

  1. Create a new option which enables this function or not.
  2. If the option is enabled and there is a stored id, replace lastEventId with the stored one when making url.
  3. Every time the event is arrived, If the option is enabled and the event has an id, then save the event id into cookie.

Discussion

  • Is it all right to write cookie?
  • What if there are more than one sockets using this option?
  • The number of cookie to be used.
  • Cookie name and value format
@mkdgs
Copy link
Contributor

mkdgs commented May 19, 2012

for now i use localStorage instead cookie, but the goal and the odd is the same.
when more than one tab is open you can loose some events...

but for my use it's right, i can loose some events.

i think the better way is to have only one socket and sharing it... but the big question about that is how communicate across tabs.

@flowersinthesand
Copy link
Owner Author

Issue #21 covers sharing a socket across tabs, but I'm not sure it's feasible yet.

@mkdgs
Copy link
Contributor

mkdgs commented May 20, 2012

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

No branches or pull requests

2 participants