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

Closed
numtel opened this Issue Nov 28, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@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: https://github.com/numtel/meteor-server-method-issue

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

@glasser

This comment has been minimized.

Member

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