title: Karma won't run (socket.io throwing error)
body: <p>I have an Angular 2 project, written in Typescript. I am trying to get Travis CI set up. Unfortunately, I am getting an error thrown from Karma:</p>
  <blockquote>
  <p>Missing error handler on <code>socket</code>.</p>
  <p>TypeError: (msg || &quot;&quot;).replace is not a function</p>
  </blockquote>
  <h3>Expected behavior</h3>
  <p>My Travis CI build to complete the Jasmine Unit tests defined, reporting the number run and success vs. failure.</p>
  <h3>Actual behavior</h3>
  <p>This is the output from my build log. <a href="https://travis-ci.org/georgeedwards/Gen-App/builds/120847556" rel="noreferrer">Here</a> is the full build log. Also, <a href="https://github.com/georgeedwards/Gen-App/commit/fba70d6960b88ea01858ef8b1fc26eece1e49e34" rel="noreferrer">here</a> is the full github repository that was being built.</p>
  <pre><code>[09:39:04] Starting 'client.unit_test'...
  05 04 2016 09:39:04.281:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
  05 04 2016 09:39:04.287:INFO [launcher]: Starting browser Chrome
  05 04 2016 09:39:05.519:INFO [Chrome 49.0.2623 (Linux 0.0.0)]: Connected on socket /#7wcOJ3uFvZX-HgZeAAAA with id 49035067
  Missing error handler on `socket`.
  TypeError: (msg || &quot;&quot;).replace is not a function
    at /home/travis/build/georgeedwards/Gen-App/node_modules/karma/lib/reporter.js:45:23
    at [object Object].onBrowserError (/home/travis/build/georgeedwards/Gen-App/node_modules/karma/lib/reporters/base.js:58:60)
  </code></pre>
  <h3>Enviroment Details</h3>
  <p>Node v5.10.0</p>
  <p>Angular 2.0.0-beta.12</p>
  <pre><code>├── karma@0.13.22 
  ├── karma-chrome-launcher@0.1.12 
  ├── karma-coverage@0.2.7 
  ├── karma-firefox-launcher@0.1.7 
  ├── karma-ie-launcher@0.1.5 
  ├── karma-jasmine@0.3.8 
  ├── karma-ng-html2js-preprocessor@0.1.2 
  ├── karma-opera-launcher@0.1.0 
  ├── karma-phantomjs-launcher@0.1.4
  </code></pre>
  <p>Any ideas what may be causing this, or what info you might need to debug this?</p>