I was struggling that the first event was not handled.
That was because the first response that got into the function _handleEvent(response) was just "date:" (Thats all. Has no "\n\n")
Therefore response.lastIndexOf('\n\n') returns -1 and when real event got into the method his response.substr(this.lastIndexProcessed) was like "ata: { // data // }" and data didnt get into the function dispatch
I was struggling that the first event was not handled. That was because the first response that got into the function _handleEvent(response) was just "date:" (Thats all. Has no "\n\n") Therefore response.lastIndexOf('\n\n') returns -1 and when real event got into the method his response.substr(this.lastIndexProcessed) was like "ata: { // data // }" and data didnt get into the function dispatch