Compare View
Commits (2)
Changes
Showing 4 changed files Side-by-side Diff
CHANGELOG.md
... | ... | @@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d |
4 | 4 | |
5 | 5 | Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). |
6 | 6 | |
7 | +#### [v0.1.17](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/compare/v0.1.16...v0.1.17) | |
8 | + | |
9 | +- Add clients.hasActiveWs [`78c968c`](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/commit/78c968c3124f66bd482472fbfa9a6d646950fce4) | |
10 | + | |
7 | 11 | #### [v0.1.16](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/compare/v0.1.15...v0.1.16) |
8 | 12 | |
13 | +> 8 February 2022 | |
14 | + | |
9 | 15 | - Bump to komodo-sdk@1.44.4 [`c49a932`](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/commit/c49a93206409a273d8a8d3290aaf90a5a040e268) |
10 | 16 | |
11 | 17 | #### [v0.1.15](https://gitlab.kodesumber.com/komodo/komodo-sdk-push-trx/compare/v0.1.14...v0.1.15) |
client.js
... | ... | @@ -2,4 +2,14 @@ require('./lib/client'); |
2 | 2 | |
3 | 3 | const pushTaskPrepaid = require('./lib/client/push-task-prepaid'); |
4 | 4 | |
5 | +const wsList = require('./lib/client/ws-list'); | |
6 | + | |
5 | 7 | exports.pushTaskPrepaid = pushTaskPrepaid; |
8 | + | |
9 | +/** | |
10 | + * Check if gateway has valid active websocket | |
11 | + * | |
12 | + * @param {string} gatewayName | |
13 | + * @returns {boolean} | |
14 | + */ | |
15 | +exports.hasActiveWs = (gatewayName) => !!wsList[gatewayName]; |
package-lock.json
1 | 1 | { |
2 | 2 | "name": "komodo-sdk-push-trx", |
3 | - "version": "0.1.16", | |
3 | + "version": "0.1.17", | |
4 | 4 | "lockfileVersion": 2, |
5 | 5 | "requires": true, |
6 | 6 | "packages": { |
7 | 7 | "": { |
8 | 8 | "name": "komodo-sdk-push-trx", |
9 | - "version": "0.1.16", | |
9 | + "version": "0.1.17", | |
10 | 10 | "license": "ISC", |
11 | 11 | "dependencies": { |
12 | 12 | "express": "^4.17.2", |