<div dir="ltr">Hi,<div><br></div><div style>How do you correctly close a connection? </div><div style>Why is my exchange not being created? </div><div style><br></div><div style><div>var connection = amqp.createConnection({url: RABBITMQ_URL});</div>
<div><br></div><div>connection.on('ready', function(){</div><div><span class="" style="white-space:pre">        </span>//console.log("Connection established");</div><div><span class="" style="white-space:pre">        </span>connection.exchange('cloudrouter', {"type": "direct"}, function(exchange){</div>
<div><span class="" style="white-space:pre">                </span>console.log("Exchange created");</div><div><span class="" style="white-space:pre">                </span>console.log("Another Message");</div><div><span class="" style="white-space:pre">                </span>//exchange.publish('',"Hellow World");</div>
<div><span class="" style="white-space:pre">                </span>//console.log(" [x] Sent Hello World");</div><div><span class="" style="white-space:pre">                </span>//amqp_hacks.safeEndConnection(connection);</div><div><span class="" style="white-space:pre">        </span>});</div>
<div>});</div><div><br></div><div><br></div></div><div><div><br></div>-- <br><div dir="ltr">Warmest Regards, <br>
<br>
<strong>Josh Birdwell</strong><br>STEM Advocate <br>
Oklahoma City, Oklahoma <br>
Mobile: <a value="+14053880176">(405) 388-0176</a>
<br>
<a href="http://www.twitter.com/jbirdwell34" target="_blank"><img src="http://i45.tinypic.com/vobyw6.png" style="float: left; width: 50px; min-height: 50px; margin-right: 10px; border: none;" border="0" height="50" width="50"></a>
<a href="http://www.facebook.com/rfidedgellc" target="_blank"><img src="http://i47.tinypic.com/2j2us88.png" style="float: left; width: 50px; min-height: 50px; margin-right: 10px; border: none;" border="0" height="50" width="50"></a>
<a href="http://www.linkedin.com/in/joshbirdwell" target="_blank"><img src="http://i45.tinypic.com/rmiww9.png" style="float: left; width: 50px; min-height: 50px; margin-right: 10px; border: none;" border="0" height="50" width="50"></a>
<a href="http://www.rfidedge.org" target="_blank"><img src="http://i47.tinypic.com/spdr8h.jpg" style="float: left; width: 50px; min-height: 50px; margin-right: 10px; border: none;" border="0" height="50" width="50"></a><div>
<div><img src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div></div></div>
</div></div>