diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index 63c0fd4..7859319 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -1,22 +1,30 @@ :root { - --light-hl-0: #0000FF; - --dark-hl-0: #569CD6; - --light-hl-1: #000000; - --dark-hl-1: #D4D4D4; - --light-hl-2: #0070C1; - --dark-hl-2: #4FC1FF; - --light-hl-3: #795E26; - --dark-hl-3: #DCDCAA; - --light-hl-4: #A31515; - --dark-hl-4: #CE9178; - --light-hl-5: #008000; - --dark-hl-5: #6A9955; - --light-hl-6: #001080; - --dark-hl-6: #9CDCFE; - --light-hl-7: #098658; - --dark-hl-7: #B5CEA8; - --light-hl-8: #AF00DB; - --dark-hl-8: #C586C0; + --light-hl-0: #000000; + --dark-hl-0: #D4D4D4; + --light-hl-1: #A31515; + --dark-hl-1: #CE9178; + --light-hl-2: #AF00DB; + --dark-hl-2: #C586C0; + --light-hl-3: #001080; + --dark-hl-3: #9CDCFE; + --light-hl-4: #0000FF; + --dark-hl-4: #569CD6; + --light-hl-5: #0070C1; + --dark-hl-5: #4FC1FF; + --light-hl-6: #795E26; + --dark-hl-6: #DCDCAA; + --light-hl-7: #008000; + --dark-hl-7: #6A9955; + --light-hl-8: #267F99; + --dark-hl-8: #4EC9B0; + --light-hl-9: #098658; + --dark-hl-9: #B5CEA8; + --light-hl-10: #800000; + --dark-hl-10: #808080; + --light-hl-11: #E50000; + --dark-hl-11: #9CDCFE; + --light-hl-12: #000000FF; + --dark-hl-12: #D4D4D4; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @@ -31,6 +39,10 @@ --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); --code-background: var(--light-code-background); } } @@ -44,6 +56,10 @@ --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); --code-background: var(--dark-code-background); } } @@ -57,6 +73,10 @@ --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); --code-background: var(--light-code-background); } @@ -70,6 +90,10 @@ --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); --code-background: var(--dark-code-background); } @@ -82,4 +106,8 @@ .hl-6 { color: var(--hl-6); } .hl-7 { color: var(--hl-7); } .hl-8 { color: var(--hl-8); } +.hl-9 { color: var(--hl-9); } +.hl-10 { color: var(--hl-10); } +.hl-11 { color: var(--hl-11); } +.hl-12 { color: var(--hl-12); } pre, code { background: var(--code-background); } diff --git a/docs/assets/search.js b/docs/assets/search.js index d8181c3..dbae5bb 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"kinds\":{\"32\":\"Variable\",\"64\":\"Function\",\"128\":\"Class\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\"},\"rows\":[{\"kind\":128,\"name\":\"SignX\",\"url\":\"classes/SignX.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/SignX.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"timeout\",\"url\":\"classes/SignX.html#timeout\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"pollingInterval\",\"url\":\"classes/SignX.html#pollingInterval\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"network\",\"url\":\"classes/SignX.html#network\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"endpoint\",\"url\":\"classes/SignX.html#endpoint\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"sitename\",\"url\":\"classes/SignX.html#sitename\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"pollingTimeout\",\"url\":\"classes/SignX.html#pollingTimeout\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"generateRandomHash\",\"url\":\"classes/SignX.html#generateRandomHash\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-private\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"login\",\"url\":\"classes/SignX.html#login\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"transact\",\"url\":\"classes/SignX.html#transact\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"startPolling\",\"url\":\"classes/SignX.html#startPolling\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-private\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"stopPolling\",\"url\":\"classes/SignX.html#stopPolling\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":32,\"name\":\"SIGN_X_LOGIN\",\"url\":\"variables/SIGN_X_LOGIN.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_LOGIN_SUCCESS\",\"url\":\"variables/SIGN_X_LOGIN_SUCCESS.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_LOGIN_ERROR\",\"url\":\"variables/SIGN_X_LOGIN_ERROR.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_TRANSACT\",\"url\":\"variables/SIGN_X_TRANSACT.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_TRANSACT_SUCCESS\",\"url\":\"variables/SIGN_X_TRANSACT_SUCCESS.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_TRANSACT_ERROR\",\"url\":\"variables/SIGN_X_TRANSACT_ERROR.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"VERSION\",\"url\":\"variables/VERSION.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":64,\"name\":\"hashTransactData\",\"url\":\"functions/hashTransactData.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":64,\"name\":\"generateSecureHash\",\"url\":\"functions/generateSecureHash.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":128,\"name\":\"Random\",\"url\":\"classes/Random.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":2048,\"name\":\"getBytes\",\"url\":\"classes/Random.html#getBytes\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Random\"},{\"kind\":2048,\"name\":\"getHex\",\"url\":\"classes/Random.html#getHex\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Random\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/Random.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"Random\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,28.904]],[\"comment/0\",[]],[\"name/1\",[1,23.795]],[\"comment/1\",[]],[\"name/2\",[2,28.904]],[\"comment/2\",[]],[\"name/3\",[3,28.904]],[\"comment/3\",[]],[\"name/4\",[4,28.904]],[\"comment/4\",[]],[\"name/5\",[5,28.904]],[\"comment/5\",[]],[\"name/6\",[6,28.904]],[\"comment/6\",[]],[\"name/7\",[7,28.904]],[\"comment/7\",[]],[\"name/8\",[8,28.904]],[\"comment/8\",[]],[\"name/9\",[9,28.904]],[\"comment/9\",[]],[\"name/10\",[10,28.904]],[\"comment/10\",[]],[\"name/11\",[11,28.904]],[\"comment/11\",[]],[\"name/12\",[12,28.904]],[\"comment/12\",[]],[\"name/13\",[13,28.904]],[\"comment/13\",[]],[\"name/14\",[14,28.904]],[\"comment/14\",[]],[\"name/15\",[15,28.904]],[\"comment/15\",[]],[\"name/16\",[16,28.904]],[\"comment/16\",[]],[\"name/17\",[17,28.904]],[\"comment/17\",[]],[\"name/18\",[18,28.904]],[\"comment/18\",[]],[\"name/19\",[19,28.904]],[\"comment/19\",[]],[\"name/20\",[20,28.904]],[\"comment/20\",[]],[\"name/21\",[21,28.904]],[\"comment/21\",[]],[\"name/22\",[22,28.904]],[\"comment/22\",[]],[\"name/23\",[23,28.904]],[\"comment/23\",[]],[\"name/24\",[24,28.904]],[\"comment/24\",[]],[\"name/25\",[1,23.795]],[\"comment/25\",[]]],\"invertedIndex\":[[\"constructor\",{\"_index\":1,\"name\":{\"1\":{},\"25\":{}},\"comment\":{}}],[\"endpoint\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"generaterandomhash\",{\"_index\":8,\"name\":{\"8\":{}},\"comment\":{}}],[\"generatesecurehash\",{\"_index\":21,\"name\":{\"21\":{}},\"comment\":{}}],[\"getbytes\",{\"_index\":23,\"name\":{\"23\":{}},\"comment\":{}}],[\"gethex\",{\"_index\":24,\"name\":{\"24\":{}},\"comment\":{}}],[\"hashtransactdata\",{\"_index\":20,\"name\":{\"20\":{}},\"comment\":{}}],[\"login\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"network\",{\"_index\":4,\"name\":{\"4\":{}},\"comment\":{}}],[\"pollinginterval\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"pollingtimeout\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"random\",{\"_index\":22,\"name\":{\"22\":{}},\"comment\":{}}],[\"sign_x_login\",{\"_index\":13,\"name\":{\"13\":{}},\"comment\":{}}],[\"sign_x_login_error\",{\"_index\":15,\"name\":{\"15\":{}},\"comment\":{}}],[\"sign_x_login_success\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"sign_x_transact\",{\"_index\":16,\"name\":{\"16\":{}},\"comment\":{}}],[\"sign_x_transact_error\",{\"_index\":18,\"name\":{\"18\":{}},\"comment\":{}}],[\"sign_x_transact_success\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"signx\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"sitename\",{\"_index\":6,\"name\":{\"6\":{}},\"comment\":{}}],[\"startpolling\",{\"_index\":11,\"name\":{\"11\":{}},\"comment\":{}}],[\"stoppolling\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}],[\"timeout\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"transact\",{\"_index\":10,\"name\":{\"10\":{}},\"comment\":{}}],[\"version\",{\"_index\":19,\"name\":{\"19\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = JSON.parse("{\"kinds\":{\"32\":\"Variable\",\"64\":\"Function\",\"128\":\"Class\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\"},\"rows\":[{\"kind\":128,\"name\":\"SignX\",\"url\":\"classes/SignX.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/SignX.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"timeout\",\"url\":\"classes/SignX.html#timeout\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"pollingInterval\",\"url\":\"classes/SignX.html#pollingInterval\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"network\",\"url\":\"classes/SignX.html#network\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"endpoint\",\"url\":\"classes/SignX.html#endpoint\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"sitename\",\"url\":\"classes/SignX.html#sitename\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":1024,\"name\":\"pollingTimeout\",\"url\":\"classes/SignX.html#pollingTimeout\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"generateRandomHash\",\"url\":\"classes/SignX.html#generateRandomHash\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-private\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"login\",\"url\":\"classes/SignX.html#login\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"transact\",\"url\":\"classes/SignX.html#transact\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"startPolling\",\"url\":\"classes/SignX.html#startPolling\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-private\",\"parent\":\"SignX\"},{\"kind\":2048,\"name\":\"stopPolling\",\"url\":\"classes/SignX.html#stopPolling\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SignX\"},{\"kind\":32,\"name\":\"SIGN_X_LOGIN\",\"url\":\"variables/SIGN_X_LOGIN.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_LOGIN_SUCCESS\",\"url\":\"variables/SIGN_X_LOGIN_SUCCESS.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_LOGIN_ERROR\",\"url\":\"variables/SIGN_X_LOGIN_ERROR.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_TRANSACT\",\"url\":\"variables/SIGN_X_TRANSACT.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_TRANSACT_SUCCESS\",\"url\":\"variables/SIGN_X_TRANSACT_SUCCESS.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"SIGN_X_TRANSACT_ERROR\",\"url\":\"variables/SIGN_X_TRANSACT_ERROR.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":32,\"name\":\"VERSION\",\"url\":\"variables/VERSION.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":64,\"name\":\"hashTransactData\",\"url\":\"functions/hashTransactData.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":64,\"name\":\"generateSecureHash\",\"url\":\"functions/generateSecureHash.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":64,\"name\":\"convertDataToDeeplink\",\"url\":\"functions/convertDataToDeeplink.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":128,\"name\":\"Random\",\"url\":\"classes/Random.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":2048,\"name\":\"getBytes\",\"url\":\"classes/Random.html#getBytes\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Random\"},{\"kind\":2048,\"name\":\"getHex\",\"url\":\"classes/Random.html#getHex\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Random\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/Random.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"Random\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,29.267]],[\"comment/0\",[]],[\"name/1\",[1,24.159]],[\"comment/1\",[]],[\"name/2\",[2,29.267]],[\"comment/2\",[]],[\"name/3\",[3,29.267]],[\"comment/3\",[]],[\"name/4\",[4,29.267]],[\"comment/4\",[]],[\"name/5\",[5,29.267]],[\"comment/5\",[]],[\"name/6\",[6,29.267]],[\"comment/6\",[]],[\"name/7\",[7,29.267]],[\"comment/7\",[]],[\"name/8\",[8,29.267]],[\"comment/8\",[]],[\"name/9\",[9,29.267]],[\"comment/9\",[]],[\"name/10\",[10,29.267]],[\"comment/10\",[]],[\"name/11\",[11,29.267]],[\"comment/11\",[]],[\"name/12\",[12,29.267]],[\"comment/12\",[]],[\"name/13\",[13,29.267]],[\"comment/13\",[]],[\"name/14\",[14,29.267]],[\"comment/14\",[]],[\"name/15\",[15,29.267]],[\"comment/15\",[]],[\"name/16\",[16,29.267]],[\"comment/16\",[]],[\"name/17\",[17,29.267]],[\"comment/17\",[]],[\"name/18\",[18,29.267]],[\"comment/18\",[]],[\"name/19\",[19,29.267]],[\"comment/19\",[]],[\"name/20\",[20,29.267]],[\"comment/20\",[]],[\"name/21\",[21,29.267]],[\"comment/21\",[]],[\"name/22\",[22,29.267]],[\"comment/22\",[]],[\"name/23\",[23,29.267]],[\"comment/23\",[]],[\"name/24\",[24,29.267]],[\"comment/24\",[]],[\"name/25\",[25,29.267]],[\"comment/25\",[]],[\"name/26\",[1,24.159]],[\"comment/26\",[]]],\"invertedIndex\":[[\"constructor\",{\"_index\":1,\"name\":{\"1\":{},\"26\":{}},\"comment\":{}}],[\"convertdatatodeeplink\",{\"_index\":22,\"name\":{\"22\":{}},\"comment\":{}}],[\"endpoint\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"generaterandomhash\",{\"_index\":8,\"name\":{\"8\":{}},\"comment\":{}}],[\"generatesecurehash\",{\"_index\":21,\"name\":{\"21\":{}},\"comment\":{}}],[\"getbytes\",{\"_index\":24,\"name\":{\"24\":{}},\"comment\":{}}],[\"gethex\",{\"_index\":25,\"name\":{\"25\":{}},\"comment\":{}}],[\"hashtransactdata\",{\"_index\":20,\"name\":{\"20\":{}},\"comment\":{}}],[\"login\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"network\",{\"_index\":4,\"name\":{\"4\":{}},\"comment\":{}}],[\"pollinginterval\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"pollingtimeout\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"random\",{\"_index\":23,\"name\":{\"23\":{}},\"comment\":{}}],[\"sign_x_login\",{\"_index\":13,\"name\":{\"13\":{}},\"comment\":{}}],[\"sign_x_login_error\",{\"_index\":15,\"name\":{\"15\":{}},\"comment\":{}}],[\"sign_x_login_success\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"sign_x_transact\",{\"_index\":16,\"name\":{\"16\":{}},\"comment\":{}}],[\"sign_x_transact_error\",{\"_index\":18,\"name\":{\"18\":{}},\"comment\":{}}],[\"sign_x_transact_success\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"signx\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"sitename\",{\"_index\":6,\"name\":{\"6\":{}},\"comment\":{}}],[\"startpolling\",{\"_index\":11,\"name\":{\"11\":{}},\"comment\":{}}],[\"stoppolling\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}],[\"timeout\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"transact\",{\"_index\":10,\"name\":{\"10\":{}},\"comment\":{}}],[\"version\",{\"_index\":19,\"name\":{\"19\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/docs/classes/Random.html b/docs/classes/Random.html index e9cd293..b081fe0 100644 --- a/docs/classes/Random.html +++ b/docs/classes/Random.html @@ -1,4 +1,4 @@ -
Synchronously calls each of the listeners registered for the event namedeventName
, in the order they were registered, passing the supplied arguments
to each.
Returns true
if the event had listeners, false
otherwise.
const EventEmitter = require('events');
const myEmitter = new EventEmitter();
// First listener
myEmitter.on('event', function firstListener() {
console.log('Helloooo! first listener');
});
// Second listener
myEmitter.on('event', function secondListener(arg1, arg2) {
console.log(`event with parameters ${arg1}, ${arg2} in second listener`);
});
// Third listener
myEmitter.on('event', function thirdListener(...args) {
const parameters = args.join(', ');
console.log(`event with parameters ${parameters} in third listener`);
});
console.log(myEmitter.listeners('event'));
myEmitter.emit('event', 1, 2, 3, 4, 5);
// Prints:
// [
// [Function: firstListener],
// [Function: secondListener],
// [Function: thirdListener]
// ]
// Helloooo! first listener
// event with parameters 1, 2 in second listener
// event with parameters 1, 2, 3, 4, 5 in third listener
+const EventEmitter = require('events');
const myEmitter = new EventEmitter();
// First listener
myEmitter.on('event', function firstListener() {
console.log('Helloooo! first listener');
});
// Second listener
myEmitter.on('event', function secondListener(arg1, arg2) {
console.log(`event with parameters ${arg1}, ${arg2} in second listener`);
});
// Third listener
myEmitter.on('event', function thirdListener(...args) {
const parameters = args.join(', ');
console.log(`event with parameters ${parameters} in third listener`);
});
console.log(myEmitter.listeners('event'));
myEmitter.emit('event', 1, 2, 3, 4, 5);
// Prints:
// [
// [Function: firstListener],
// [Function: secondListener],
// [Function: thirdListener]
// ]
// Helloooo! first listener
// event with parameters 1, 2 in second listener
// event with parameters 1, 2, 3, 4, 5 in third listener
Since
v0.1.26
@@ -229,7 +229,7 @@ event Names
Generated using TypeDoc
diff --git a/docs/modules.html b/docs/modules.html
index 2abb812..95c7854 100644
--- a/docs/modules.html
+++ b/docs/modules.html
@@ -1,4 +1,4 @@
-@ixo/signx
+@ixo/signx-sdk
The search index is not available @ixo/signx-sdk
+
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Returns an array listing the events for which the emitter has registered listeners. The values in the array are strings or
-Symbol
s.