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

Method calls on server return by reference #3201

numtel opened this issue Nov 28, 2014 · 1 comment

Method calls on server return by reference #3201

numtel opened this issue Nov 28, 2014 · 1 comment


Copy link

@numtel numtel commented Nov 28, 2014

When using a Meteor method call on the server, the return value is transferred by reference to the callback.

On the client, the value is obviously passed by value as it must be JSON serialized.

Please see the following very simple package I have created to display this:

I don't see anything in the documentation about this inconsistency. It would be nice to have it work the same on client and server but that may not be the best option?

@glasser glasser added the Project:DDP label Jan 9, 2015
Copy link

@glasser glasser commented Jan 26, 2015

Thanks for the helpful reproduction.

@glasser glasser closed this in c51eed9 Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants