Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 845 Bytes

messagehub102.md

File metadata and controls

38 lines (24 loc) · 845 Bytes
copyright lastupdated
years
2015, 2017
2016-11-22

{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre}

Using the MQ Light Node.js client

{: #mql_node}

To use the API, add a reference to the latest available {{site.data.keyword.mql}} client API for Node.js as follows:

Add the following reference to the dependency section of your package.json file:

"mqlight" : "1.0.x"

{: codeblock}

And add the following require statement to your source file:

var mqlight = require(‘mqlight’);

{: codeblock}