mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Unfortunately, it makes our API less clean to depend on specific parsing done by the Transport when clearly it doesnt belong there. The problem is that XHR polling *needs* specific messages to compensate for lack of features such as the ability to signal a connection close. Since we're already doing peaking of message types in the polling transport, we want to avoid the performance penalty of double parsing at the polling level and later at the Engine level, and we sacrifice a little bit of API purity.