@niobium/api-transport
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name" : "@niobium/api-transport", | ||
"description" : "Niobium API transport layer", | ||
"version" : "0.3.1", | ||
"version" : "0.3.2", | ||
"license" : "MIT", | ||
@@ -6,0 +6,0 @@ "author" : { |
@@ -259,3 +259,3 @@ const nTools = require('@niobium/tools'); | ||
if (packet && !this.isLocal) this.socket.binary(true).compress(false).emit(this.options.cmdToTarget, await this.serializePacket(packet)); | ||
if (packet && !this.isLocal) this.socket.compress(false).emit(this.options.cmdToTarget, await this.serializePacket(packet)); | ||
if (packet && this.isLocal) { | ||
@@ -332,3 +332,3 @@ let ret = await this.emitEx(packet.name, true, { | ||
if (mwConfig.hasError) packet.args = [this.API_ERROR]; | ||
this.socket.binary(true).compress(false).emit(this.options.cmdFromTargetRet, await this.serializePacket(packet)); | ||
this.socket.compress(false).emit(this.options.cmdFromTargetRet, await this.serializePacket(packet)); | ||
if (packet.hasError || mwConfig.hasError) throw packet.errorDescription || mwConfig.errorDescription; | ||
@@ -335,0 +335,0 @@ } |
21807