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

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

Method calls on server return by reference #3201

numtel opened this issue Nov 28, 2014 · 1 comment

Comments

@numtel
Copy link

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
Copy link
Contributor

glasser commented Jan 26, 2015

Thanks for the helpful reproduction.

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

No branches or pull requests

2 participants