When connecting to a clean queue, everything works properly.
I purposefully commented the ack() line out to see if it handles it correctly, when I launch node again, it fails to parse the (same) message.
Sams-MacBook-Pro:stomp-js samit$ ./examples/stomp-consumer.js
Connected
Got message: 114
HEADERS: { timestamp: '1344654591258',
redelivered: 'false',
expires: '0',
subscription: 'subscription/jms.queue.orders',
priority: '4',
'content-length': '84',
'message-id': '114',
'http_content$type': 'text/plain; charset=UTF-8',
postedAsHttpMessage: 'true',
'http_content$length': '84',
destination: 'jms.queue.orders',
bytes_message: true }
BODY: <order>
<name>Monica</name>
<item>iPad</item>
<cost>$499.99</cost>
</order>
^C
Consumed 1 messages
Sams-MacBook-Pro:stomp-js samit$ ./examples/stomp-consumer.js
Connected
Got message: 114
HEADERS: { timestamp: '1344654591258',
redelivered: 'true',
expires: '0',
subscription: 'subscription/jms.queue.orders',
priority: '4',
'content-length': '347',
'message-id': '114',
'http_content$type': 'text/plain; charset=UTF-8',
postedAsHttpMessage: 'true',
'http_content$length': '84',
destination: 'jms.queue.orders',
bytes_message: true }
BODY: <order>
<name>Monica</name>
<item>iPad</item>
<cost>$499.99</cost>
</order>kr jms.queue.orders�9��"http_content$type
Could not parse command: 2text/plain; charset=UTF-8&postedAsHttpMessage�&http_content$length
Could not parse command: 84�
^C
Consumed 1 messages
Sams-MacBook-Pro:stomp-js samit$
BTW, the message is created using the REST interface (which is why those odd headers are added) and I think something in those headers is what causing the issue but it does parse it correctly the first time.