vanbosse / rabbitmq-demo Goto Github PK
View Code? Open in Web Editor NEWDemo of RabbitMQ working together with PHP, Node.js and Socket.io.
Demo of RabbitMQ working together with PHP, Node.js and Socket.io.
Don't know if there is a better place for this question.
I'm trying your example and installation instructions on a mac running Yosemite and MAMP pro. Getting this error when trying to run "node js/server.js":
node js/server.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED
at errnoException (net.js:904:11)
at Object.afterConnect [as oncomplete] (net.js:895:19)
Firewall is disabled, so all ports are open. MAMP is running on port 80. Browsing to localhost:8080 gives a 404, so presumably there's nothing else listening on the port.
I'm confused about how this is supposed to work.
Your readme file says, "setup a vhost to your folder". So presumably you mean adding a VirtualHost in httpd.conf (for example) which maps a domain name (like rabbit-demo.dev) to that folder on port 80.
With that in place however, the call to socket.io fails: (failed) net::ERR_CONNECTION_REFUSED. It seems to be trying to connect to http://localhost:8080/socket.io/socket.io.js
I've checked that port 8080 is open in iptables and also SELinux is not throwing any audit errors.
So I'm stumped. Any chance you could elaborate a bit more on the vhost and port setup?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.