** Listening messages from rabbitmq **
This code listen messages from the emiter to the browser using node.js --socket.io
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
Just run:
node index.js
And the server in port 3000 its waiting for messages...
You need access to
http://localhost:3000/
And the server in port 3000 its waiting for 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