Skip to content

Commit d5416a1

Browse files
f3rnoJacobPlaster
authored andcommitted
(feature) add setAuthArgs() method to ws2 manager
1 parent 9e4e3c6 commit d5416a1

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
4.0.3
2+
- WS2Manager: add setAuthArgs method
3+
14
4.0.2
25
- WS2Manager: add reconnect method
36

lib/ws2_manager.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ class WS2Manager extends EventEmitter {
4141
}
4242
}
4343

44+
/**
45+
* Update authentication arguments
46+
*
47+
* @param {Object} args
48+
*/
49+
setAuthArgs (args = {}) {
50+
this._authArgs = {
51+
...this._authArgs,
52+
...args,
53+
}
54+
}
55+
4456
/**
4557
* Reconnects all open sockets
4658
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitfinex-api-node",
3-
"version": "4.0.2",
3+
"version": "4.0.3",
44
"description": "Node reference library for Bitfinex API",
55
"engines": {
66
"node": ">=7"

0 commit comments

Comments
 (0)