title: How to call node.js server side method from javascript?
body: <p>I'm new to node.js but I know somewhat about socketstream web framework by using this I can easily call a server side node.js method from JavaScript. I don't know how to do this without using that framework. How can I call the node.js method from JavaScript?</p>
  
  <p>The below code is using socketstream to call server side method. So I want to call the same server side method without using this framework.</p>
  
  <pre><code>ss.rpc('FileName.methodName',function(res){ 
      alert(res);         
  });
  </code></pre>