{"id":4328,"date":"2022-02-21T13:12:31","date_gmt":"2022-02-21T20:12:31","guid":{"rendered":"http:\/\/www.sheer.us\/weblogs\/?p=4328"},"modified":"2022-12-28T11:03:27","modified_gmt":"2022-12-28T18:03:27","slug":"rabbitmq-websocket-url-wrong-in-documentation","status":"publish","type":"post","link":"https:\/\/www.sheer.us\/weblogs\/programming\/rabbitmq-websocket-url-wrong-in-documentation","title":{"rendered":"RabbitMQ websocket URL wrong in documentation"},"content":{"rendered":"<p>Just sticking this here in the hopes that it will get listed in google and maybe save some folks a little time.<\/p>\n<p>If you are trying to use rabbitMQ&#8217;s websocket STOMP connector, as discussed on <A HREF=https:\/\/www.rabbitmq.com\/stomp.html>https:\/\/www.rabbitmq.com\/stomp.html<\/A>, be aware that the URL given in the documentation on this page is wrong (or perhaps only applies to newer versions of rabbitmq).<\/p>\n<p>The correct way to successfully create a websocket to RabbitMQ 3.5.7 (which ships with Ubuntu 16.04) is as follows:<\/p>\n<p><PRE><br \/>\nvar ws = new WebSocket(&#8216;ws:\/\/yourhostname:15674\/stomp\/websocket&#8217;);<br \/>\nvar client = Stomp.over(ws);<br \/>\n<\/PRE><\/p>\n<p>Later note: The documentation is correct for newer versions of RabbitMQ.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just sticking this here in the hopes that it will get listed in google and maybe save some folks a little time. If you are trying to use rabbitMQ&#8217;s websocket STOMP connector, as discussed on https:\/\/www.rabbitmq.com\/stomp.html, be aware that the URL given in the documentation on this page is wrong (or perhaps only applies to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts\/4328"}],"collection":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/comments?post=4328"}],"version-history":[{"count":2,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts\/4328\/revisions"}],"predecessor-version":[{"id":4464,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts\/4328\/revisions\/4464"}],"wp:attachment":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/media?parent=4328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/categories?post=4328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/tags?post=4328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}