Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hello World for nodejs stream client #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Gsantomaggio merged 9 commits into rabbitmq:main from coders51:nodejs-stream
May 9, 2024

Conversation

@icappello
Copy link
Contributor

@icappello icappello commented Apr 24, 2024

Hello World for nodejs stream client

Copy link

@icappello Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Copy link
Member

Also you need to sign Contributor License Agreement!

icappello reacted with thumbs up emoji

Copy link

@icappello Thank you for signing the Contributor License Agreement!

Copy link
Member

@Gsantomaggio Gsantomaggio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the grant to push

Can you apply this patch?

diff --git a/javascript-nodejs-stream/package.json b/javascript-nodejs-stream/package.json
index 5350de3..480c09d 100644
--- a/javascript-nodejs-stream/package.json
+++ b/javascript-nodejs-stream/package.json
@@ -3,7 +3,7 @@
 "version": "1.0.0",
 "description": "Tutorial for the nodejs Rabbitqm stream client",
 "scripts": {
- "publish": "node send.js",
+ "send": "node send.js",
 "receive": "node receive.js"
 },
 "dependencies": {
diff --git a/javascript-nodejs-stream/receive.js b/javascript-nodejs-stream/receive.js
index 4522cb6..896e1ac 100644
--- a/javascript-nodejs-stream/receive.js
+++ b/javascript-nodejs-stream/receive.js
@@ -9,8 +9,8 @@ async function main() {
 const client = await rabbit.connect({
 hostname: "localhost",
 port: 5552,
- username: "rabbit",
- password: "rabbit",
+ username: "guest",
+ password: "guest",
 vhost: "/",
 })
 
diff --git a/javascript-nodejs-stream/send.js b/javascript-nodejs-stream/send.js
index a6a1480..6a38cfc 100644
--- a/javascript-nodejs-stream/send.js
+++ b/javascript-nodejs-stream/send.js
@@ -8,8 +8,8 @@ async function main() {
 vhost: "/",
 port: 5552,
 hostname: "localhost",
- username: "rabbit",
- password: "rabbit",
+ username: "guest",
+ password: "guest",
 });
 
 console.log("Making sure the stream exists...");

icappello reacted with thumbs up emoji
Copy link
Member

@Gsantomaggio Gsantomaggio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Gsantomaggio Gsantomaggio merged commit bfe6dd0 into rabbitmq:main May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Gsantomaggio Gsantomaggio Gsantomaggio approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /