Emit error event for close event codes above 1000.
Merge pull request #233 from alexmingoia/sockjs-reconnect

Emit error event for close event codes above 1000.