Automattic/socket.io-client — pull request #734 by adelura (2014-07-23 18:43:05+00:00)
Title: Removed unnecessary code from try block. Only decode packet is needed.

Take in mind this code:
``` javascript
socket.on('message', function (data) {
// doing some stuff in my application

// but then my application throw error
throw new Error('Something went wrong here :(');
});
```

Two unwanted things happend here:
* I can't see that error thrown in browser console.
* Connection with server is terminated here.

That's because in `Transport.prototype.onData` calling `onPacket` method is in same call stack as my application code listed above and additionaly is in try catch block. Decode packet error handler think that there was something wrong with decoding packet, and as result it terminates connection. But it's not true because error was raised in my application.