From 44557695ec02fd385ed19f7b411d83d3dfa9b705 Mon Sep 17 00:00:00 2001 From: Heath123 Date: Mon, 3 Aug 2020 20:15:35 +0100 Subject: [PATCH] Fix it for writing to the client too --- src/proxy/java/proxy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/proxy/java/proxy.js b/src/proxy/java/proxy.js index 640112a..7316555 100644 --- a/src/proxy/java/proxy.js +++ b/src/proxy/java/proxy.js @@ -132,6 +132,9 @@ exports.startProxy = function (host, port, listenPort, version, callback, dataFo exports.end = function () {} exports.writeToClient = function (meta, data, noCallback) { + if (typeof meta === 'string') { + meta = { name: meta } + } realClient.write(meta.name, data) const id = Object.keys(toClientMappings).find(key => toClientMappings[key] === meta.name) if (!noCallback) {