Reputation: 62664
I want to make a Java application that uses stomp over activemq and a nodejs application that serves a few webpages that will talk to each other. With events being emitted from the client webpages served up.
I know socketio comes with separately a server-side javascript and a client-side javascript API.
I see there is a node-stomp-client: https://github.com/easternbloc/node-stomp-client
Though it looks like it is used in server-side node instead of client-side javascript. Is this library actually usable both by server-side and clientside javascript? Or does STOMP websockets have a clientside javascript library that I can use in the frontend to connect/emit events to (say if the user clicks on a button in html that fires it off)?
Or should I instead not use a stomp library and just use a plain websocket library?
Upvotes: 6
Views: 1273
Reputation: 36036
There indeed is a Javascript STOMP client implementation for browsers which is mentioned in Implementations list that is linked to at the stomp
tag wiki.
Upvotes: 1