<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(&#39;ready&#39;, function(){</div><div><span class="" style="white-space:pre">        </span>//console.log(&quot;Connection established&quot;);</div><div><span class="" style="white-space:pre">        </span>connection.exchange(&#39;cloudrouter&#39;, {&quot;type&quot;: &quot;direct&quot;}, function(exchange){</div>

<div><span class="" style="white-space:pre">                </span>console.log(&quot;Exchange created&quot;);</div><div><span class="" style="white-space:pre">                </span>console.log(&quot;Another Message&quot;);</div><div><span class="" style="white-space:pre">                </span>//exchange.publish(&#39;&#39;,&quot;Hellow World&quot;);</div>

<div><span class="" style="white-space:pre">                </span>//console.log(&quot; [x] Sent Hello World&quot;);</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>