Web Sockets support has landed in HornetQ trunk and will be available in 2.1.0 release to allow Web browsers to directly exchange messages with HornetQ servers.
See this article for a thorough description of the feature.
With HornetQ 2.0.0, you could send and receive messages from Java applications.
With upcoming 2.1.0 release, we expand it to any environment with a Stomp client and from Web browsers with Web Sockets support.
Enjoy!