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

How to serialize / deserialize? #69

Closed
coolaj86 opened this issue Jul 22, 2016 · 1 comment
Closed

How to serialize / deserialize? #69

coolaj86 opened this issue Jul 22, 2016 · 1 comment

Comments

@coolaj86
Copy link
Contributor

Looking at the code presently it seems to be very stateful and I don't think it's possible to serialize and deserialize the objects, so I'll find a way to work around it.

However, the application I'm trying to build allows multiple web and mobile users. Obviously I don't want to store all of that state in memory, so I need to be able to serialize and deserialize the object frequently - including the cookies.

Currently I'm bouncing back and forth between this and the python version trying to figure out how the api works and how to best accomplish my goals, but both are hard-coded for a single user. :-/

If it doesn't fit into your long-term goals to make this support an unlimited number of users simultaneously, I can't complain, but if it is I'll give some more specific feedback (most notably the cookie jar needs to be accepted and exportable) and pull requests if I can.

@coolaj86
Copy link
Contributor Author

I've partially implemented serialize / deserialize methods here https://github.com/coolaj86/node-pokemap

They're not quite ready for a pull request as there seems to be something missing (or the servers are simply misbehaving as-per usual), but I think I'm almost there.

This was referenced Jul 22, 2016
@Armax Armax closed this as completed Jul 23, 2016
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