I have a requirement of subscribing to a channel from the JavaScript (running on a browser window) to the RabbitMQ channel, so that the messages published by RabbitMQ to that channel can be received.
I would like to how I can do this without using any JS Library - like Node.js or any other.
I am using RabbitMQ 3.6.3, Erlang 17.0.
I would like to how I can do this without using any JS Library
you can't.
RabbitMQ requires a library - either you write it yourself (which I don't recommend) or use an existing library.
But you shouldn't be connecting from your browser, anyways. The browser should talk to the web server, and the web server should connect to RabbitMQ.
Use websockets or server-side events to communicate from the web server to the browser.