4ib3r / StompBrokerJS

NodeJS StompBroker
MIT License
35 stars 28 forks source link

Check if frame wrapped by Frame class #3

Closed rpoitras closed 6 years ago

rpoitras commented 7 years ago

In some cases the frame passed to sendFrame did not have buildFrame() or toString(). The result is the message sent to the client did not contain a valid frame. Made change to check the frame prototype for the functions, if missing, create a Frame object before calling frame.toString().

Also noticed the version in package.json hadn't been bumped up. I set it to the current latest version of your library.