Skip to content

Commit

Permalink
Fix it for writing to the client too
Browse files Browse the repository at this point in the history
  • Loading branch information
Heath123 committed Aug 3, 2020
1 parent c1e31f2 commit 4455769
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/proxy/java/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4455769

Please sign in to comment.