primus/primus — pull request #233 by alexmingoia (2014-04-30 23:58:53+00:00)
Title: Emit error event for close event codes above 1000.

Pertains to issues #75 and #32. Without this change, SockJS reconnection was failing because the "error" event was not emitted for "close" events that were not clean such as "All Transports Failed" (code 2000). This changes the check for codes above 1000 which should all be errors.