Skip to content

Conversation

@l4mby
Copy link
Contributor

@l4mby l4mby commented Jul 18, 2025

In this PR we add an option to specify the websocket url directly and we fix the websocket_example.js

const environment = rabbit.createEnvironment({
    host: rabbitHost,
    port: rabbitPort,
    username: rabbitUser,
    password: rabbitPassword,
    webSocket: WebSocket,
    webSocketUrl: "ws://localhost:15678/ws"
  })

@l4mby l4mby linked an issue Jul 18, 2025 that may be closed by this pull request
@l4mby l4mby merged commit e9ffe99 into main Jul 18, 2025
4 checks passed
@ansd
Copy link
Collaborator

ansd commented Jul 22, 2025

Thank you!

I can confirm that starting Tanzu RabbitMQ:

tanzu-rabbitmq$  make run-broker PLUGINS="rabbitmq_web_amqp"

followed by

rabbitmq-amqp-js-client/examples$ npm run rebuild-source && npm run websocket-example

works now.

@apietroni51 apietroni51 mentioned this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[patch] correct websocket options for connection

4 participants