cloudamqp / amqp-client.js

AMQP 0-9-1 TypeScript client both for Node.js and browsers (using WebSocket)
https://cloudamqp.github.io/amqp-client.js/
Apache License 2.0
202 stars 19 forks source link

amqp websockets on Little Lemur free plan #14

Closed CodeWithOz closed 2 years ago

CodeWithOz commented 2 years ago

I signed up on the free plan to try the amqp over websockets protocol but I can't find the websocket url that should be used with this library. More so the docs page says that the amqp websockets plugin is pre-installed on dedicated instances, but the free plan is a shared instance. Does this mean I can't test the amqp websockets on the free plan?

carlhoerberg commented 2 years ago

Websockets are available for all plans, I've updated the docs accordingly.

The connection string is also descibed at the bottom of that page.

const url = `wss://test-small-ivory-rat.rmq2.cloudamqp.com/ws/amqp`
const amqp = new AMQPWebSocketClient(url, "VHOST", "USERNAME", "YOUR_PASSWORD")
CodeWithOz commented 2 years ago

Thanks! Yes some reading plus trial and error eventually led me to that haha.