feat(xo-server/callProxyMethod): expectStream as named option

This commit is contained in:
Julien Fontanet 2020-06-30 12:01:53 +02:00
parent 0d0aef6014
commit 30ea1bbf87

View File

@ -317,7 +317,7 @@ export default class Proxy {
await this.callProxyMethod(id, 'system.getServerVersion')
}
async callProxyMethod(id, method, params, expectStream = false) {
async callProxyMethod(id, method, params, { expectStream = false } = {}) {
const proxy = await this._getProxy(id)
let ipAddress