StompJS (http://jmesnil.net/stomp-websocket/doc) defines how JavaScript client can connect directly to a Stomp server without having to handle a TCP socket (replaced by a web socket).
To support StompJS, we would need to abstract how we handle connection on the server side to use a web socket instead, and also provide a websocket handler that you can pass to a HTTP server.
The Stomp server won't be responsible for the creation of the HTTP server, but would just provides a handler.
StompJS (http://jmesnil.net/stomp-websocket/doc) defines how JavaScript client can connect directly to a Stomp server without having to handle a TCP socket (replaced by a web socket).
To support StompJS, we would need to abstract how we handle connection on the server side to use a web socket instead, and also provide a websocket handler that you can pass to a HTTP server.
The Stomp server won't be responsible for the creation of the HTTP server, but would just provides a handler.