Release 0.5.0
component: fix dep
*: bump emitter to 1.0.0
polling: abort payload loop if close packet is found
polling: consider the possibility of an event changing readyState
add 'drain' emit to WS
make sure to stop interval if transport closes
feature-check for bufferedAmount
fix featurecheck
added fake drain
wrapped drain call, changed back to encodePacket, moved intervalCleanup to WS, ...
removed irrelevant code
Merge branch 'ws_drain_fix' of https://github.com/albertyfwu/engine.io-client into ws_drain_fix