page-brochureware.php

IBM MQ Light API

A simple yet powerful AMQP-based messaging API. Write apps that run locally, in the cloud, or alongside IBM MQ.

Find out more or download the free MQ Light Developer Tools now:
Download the latest version for your OS

MQ Light Clients

Got the MQ Light Developer Tools? Now choose your preferred programming language to view sample code and client install instructions:
node.js
Java
Ruby
Python
Other
# Receive:
var mqlight = require('mqlight');
var recvClient = mqlight.createClient({service: 'amqp://localhost'});
recvClient.on('started', function() {
recvClient.subscribe('news/technology');
recvClient.on('message', function(data, delivery) {
          console.log(data);
     });
}); 

# Send:
var mqlight = require('mqlight');
var sendClient = mqlight.createClient({service: 'amqp://localhost'});
sendClient.on('started', function() {
    sendClient.send('news/technology', 'Hello World!');
});
To install this client: npm install mqlight@1.0

Join The Discussion

Read the latest Blogs from the developers, or ask a question on our Forum or tweet us @mqlight.

Latest Blogs