dansimpson / amqp-js

A push enabled AMQP Client for Javascript
120 stars 10 forks source link

Can't connect when "host" parameter is defined #2

Closed jokull closed 13 years ago

jokull commented 14 years ago

I have a RabbitMQ running locally.

If I don't specify the host parameter in MQ.configure it connects to the local RabbitMQ just fine and I can send and receive messages. However if I specify localhost, 127.0.0.1 or the local IP nothing happens. The client logs "Attempting to Connect" but nothing more.

I have tried Firefox, WebKit and Chrome. Same results. I have made sure the policy server is logging successful policy deliveries in both cases.

Any ideas?

dansimpson commented 14 years ago

It most likely has to do with flashes security policy.

Please see the Flash Policy Section @ http://github.com/dansimpson/amqp-js

It will help you get around the issue.

--Dan