title: Socket io get is undefined
body: <p>I'm using Sails JS and i tried to use socket IO librarie.</p>
  
  <p>As it is explained in Sails JS documentation : <a href="http://sailsjs.org/#!documentation/sockets" rel="nofollow">http://sailsjs.org/#!documentation/sockets</a></p>
  
  <p>I create a controller with this code:</p>
  
  <pre><code>index: function(req, res) {
  
      var param = req.param('msg');
  
      console.log("PARAM : ", param); // For display the message in terminal
  
      // Send a JSON response
      return res.json({
          success: true,
          message: param
      });
  },
  </code></pre>
  
  <p>And in my template (i use swig JS template engine) : </p>
  
  <p>For include socket io library : </p>
  
  <pre><code>&lt;script type="text/javascript" src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And in JavaScript code : </p>
  
  <pre><code>var socket = io.connect('http://localhost:1337');
  
  socket.get('/echo', {
      message: 'hi there!'
  }, function(response) {
      console.log ('response : ', response);
  });
  </code></pre>
  
  <p>And i've this error : undefined is not a function on socket.get('/echo' ...</p>
  
  <p>Thanks for your help !</p>