This is to handle the specific case when server sends a frame like this (which we are experiencing with atmosphere server)
5|abcdeSomeMoreStuff
In this example, if there is some additional stuff after consuming the 5 initial characters, the clients throws and error, but it enters a state were it never recover from this situation
This at least will discard "SomeMoreStuff" part but allow you to processing the next incoming frames correctly
This is to handle the specific case when server sends a frame like this (which we are experiencing with atmosphere server)
5|abcdeSomeMoreStuff
In this example, if there is some additional stuff after consuming the 5 initial characters, the clients throws and error, but it enters a state were it never recover from this situation
This at least will discard "SomeMoreStuff" part but allow you to processing the next incoming frames correctly