Modified by Fabio Knoedt adapting the version above to work with RocketSocket framework and Stomp 1.2.