UNPKG
gb_utils
Version:
latest (1.4.40)
1.4.40
1.4.39
1.4.38
1.4.37
1.4.36
1.4.35
1.4.34
1.4.33
1.4.32
1.4.31
1.4.30
1.4.29
1.4.28
1.4.27
1.4.26
1.4.25
1.4.24
1.4.23
1.4.22
1.4.21
1.4.20
1.4.19
1.4.18
1.4.17
1.4.16
1.4.15
1.4.14
1.4.13
1.4.12
1.4.11
1.4.10
1.4.9
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.1
1.3.0
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
All utils file for beta
github.com/Gamersback-Ind/gb-packages
Gamersback-Ind/gb-packages
gb_utils
/
redisPubUtils.js
16 lines
(10 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const
redis =
require
(
"redis"
);
const
publisher = redis.
createClient
({
legacyMode
:
true
, }); publisher.
connect
().
then
(
() =>
{});
const
utils = {}; utils.
publish
=
async
(chnl, data) => { publisher.
publish
(chnl, data); };
module
.
exports
= utils;