
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.