3 ms·
DNode: Asynchronous Remote Method Invocation for Node.js and the Browser
- pkrumins 16y agoEveryone should start using this module for remote method invocation in node.js!
- cageface 16y agoThis is the kind of thing that makes server-side js more compelling - bridging the language gap between the client and the server. This particular approach seems to have some security implications though. What's to prevent a client from sending malicious code to the server?
- simonw 16y agoThe client doesn't send code to the server, just a JSON representation of the function arguments (which can include names of client-side callback functions). There's no eval.
- substack 16y agoThanks for this response and the parent question too. I updated the article to make this point more clear.