Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
iqevents-js-sdk
Advanced tools
JavaScript SDK used for easily managing listeners for MarkoIQ RTM
This package acts as a wrapper that provides easy access to the MarkoIQ pusher-driven realtime events system.
You can install this package using Yarn:
yarn --dev markoiq/iqevents-js
IQEvents is a simple library that is meant to work with the MarkoIQ RTM token API. Before you can set up this client on your application you're going to want to issue a scoped RTM token to initialize your client with.
Once you have the RTM token, simply invoke the iqevents
function anywhere in your application.
getRtmToken(['myscope']).then((token: string) => iqevents(token));
You can use the MarkoIQ API to issue a token you can then expose to a user of your application, here is a PHP example:
<?php
$api = new MarkoAPI();
return $api->store($storeId)->getRtmToken(array $scopes);
Once you've initialized the library using the iqevents
helper, you can then simply use the
library's subscribe
method:
subscribe('store-1.broadcasts', payload => {
console.log('My event!');
});
This library also provides a set of methods for writing promise-based routines. You would really only use this for expecting single messages on async functions and things of the sort:
import { iqPromise } from "iqevents-js-sdk";
iqPromise.listen('store-1.broadcasts').then(payload => {
// This will only resolve once, naturally
});
FAQs
JavaScript SDK used for easily managing listeners for MarkoIQ RTM
The npm package iqevents-js-sdk receives a total of 0 weekly downloads. As such, iqevents-js-sdk popularity was classified as not popular.
We found that iqevents-js-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.