benjaminws/stomp-js-new — pull request #1 by billyhandiii (2012-03-12 01:03:42+00:00)
Title: bug in stomp_socket

StompSocket.prepareDataForParsing behaved badly when the chunk boundary didn't coincide with the frame boundary as you were not keeping a running buffer. I modified the code for my own purposes (I'm testing the viability of using ActiveMQ with NodeJS) but thought you might like the fix.

You also weren't handling the case that there may be more than one new line after the null byte. I don't really like my solution either but it works.

Other than that, everything is working smoothly. Great job!