Skip to content

tracsa/cacahuate-web-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cacahuate-web-socket

** Listening messages from rabbitmq **

This code listen messages from the emiter to the browser using node.js --socket.io

Develop

You will need node.js and rabbitmq for this to work.

git clone [email protected]:tracsa/cacahuate-web-socket.git && cd cacahuate-web-socket
npm install --save [email protected]
npm install --save socket.io
npm install amqplib

Application

Just run:

node index.js

And the server in port 3000 its waiting for messages...

Web-browser

You need access to

http://localhost:3000/

And the server in port 3000 its waiting for messages...

Emit messages

Just run in another terminal:

node cacahuate-web-socket/emit_log.js

And you will see a "eh" message declared in emit_log.js in your app-browser You can write and send a message in the chat too.

END

About

Manda notificaciones al navegador desde rabbitmq.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published