Atmosphere / atmosphere-javascript

atmosphere-javascript
Apache License 2.0
122 stars 98 forks source link

Allow recover if there are 2 messages on the same frame but only the first one with proper length #216

Closed yerfinojul closed 7 years ago

yerfinojul commented 7 years ago

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

yerfinojul commented 7 years ago

@jfarcand please check again, thanks!

yerfinojul commented 7 years ago

Thanks @jfarcand, any idea when we can tag & release this ? Thanks

jfarcand commented 7 years ago

@yerfinojul release done!