stackmq
v1.0.1
Published
Tools for developers to implement real-time messaging
Downloads
2
Readme
stackmq
Tools for developers to implement real-time messaging
Getting started
npm install stackmq
Example
import { Stackmq } from "stackmq";
const connectionString = `<your_connection_string>`;
const stackmq = new Stackmq(connectionString);
stackmq.onMessage((message) => {
console.log(message);
})
.onError((error) => {
console.log({ error });
});
Api
Stackmq()
Stackmq(connectionString)
Creates a new stackmq connection
connectionString
: The connection string to the stackmq. It should be the in the format${host}://${hostAddress}:${port}/${username}:${password}/client/${clientId}/${topic}