Skip to content

Commit 6029321

Browse files
committed
update the ioPort and wsPort properties to be writable
1 parent 7abd7ae commit 6029321

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/kuzzle.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ module.exports = Kuzzle = function (host, options, cb) {
114114
},
115115
wsPort: {
116116
value: (options && typeof options.wsPort === 'number') ? options.wsPort : 7513,
117-
enumerable: true
117+
enumerable: true,
118+
writable: true
118119
},
119120
ioPort: {
120121
value: (options && typeof options.ioPort === 'number') ? options.ioPort : 7512,
121-
enumerable: true
122+
enumerable: true,
123+
writable: true
122124
},
123125
sslConnection: {
124126
value: (options && typeof options.sslConnection === 'boolean') ? options.sslConnection : false,

0 commit comments

Comments
 (0)