title: Durandal, Socket.io and require
body: <p>I'm having a hard time setting up Durandal to include the socket io library.</p>
  
  <p>I've tried a few methods, including the path in the main.js library but as it isn't a single js file, it has never worked. </p>
  
  <p>If anyone has experience with this, I'd extremely appreciate it!!</p>
  
  <p>Thanks</p>
  
  <p>Edited with code,</p>
  
  <pre><code>requirejs.config({
  paths: {
      'text': '../lib/require/text',
      'durandal':'../lib/durandal/js',
      'plugins' : '../lib/durandal/js/plugins',
      'transitions' : '../lib/durandal/js/transitions',
      'knockout': '../lib/knockout/knockout-3.1.0',
      'bootstrap': '../lib/bootstrap/js/bootstrap',
      'jquery': '../lib/jquery/jquery-1.9.1',
      'toastr' : '../lib/toastr/toastr',
      'moment' : '../lib/moment/moment',
      'when' : '../lib/when/when',
      'flipclock': '../lib/flipclock/flipclock',
      'require': '../lib/require/require'
  },
  shim: {
      'bootstrap': {
          deps: ['jquery'],
          exports: 'jQuery'
     }
  }
  </code></pre>
  
  <p>});</p>
  
  <pre><code>  define(['durandal/system', 'durandal/app', 'durandal/viewLocator', 'require',         'plugins/http'],  function (system, app, viewLocator, require, http) {
  
  
  var io = require('socket.io')(http);
  </code></pre>