node-red / node-red-nodes

Extra nodes for Node-RED
Other
987 stars 592 forks source link

node-red-node-stomp - endpoint #570

Open NelsonCravo opened 5 years ago

NelsonCravo commented 5 years ago

Is there a way to define a stomp endpoint as a node property? If not, how can I do to connect it?

As an example, here is the command I use to connect with Python: ws = websocket.create_connection("ws://localhost:8078/job/websocket/")

dceejay commented 5 years ago

err - the configuration editor for the node has both server and port etc ? (In general we prefer how-to type questions via the Discourse forum or Slack leaving the Issues list for code issues. Thanks

NelsonCravo commented 5 years ago

In fact, it isn't a how-to type question, because there seems to be no way to registry an endpoint. In my example, the "/job/websocket/" part.

dceejay commented 5 years ago

this node is a client to talk to a stomp server that is elsewhere... it isn't a stomp server. you can add a topic (or queue) - as per the library it is based on https://www.npmjs.com/package/stomp-client