From c8777a19e1ea6061b1e6a494674be4ca30d8566e Mon Sep 17 00:00:00 2001 From: Frederic Charette Date: Sat, 27 Jan 2018 10:59:44 -0500 Subject: [PATCH] fixed reply --- README.md | 1 + src/components/client.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bbcdb02..6c43319 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ Giving profiles to your traffic output creates a more predictable load on the sy req.client The connection handle reference req.frame The details of the network frame req.session The session store for that connection + req.reply Replys to the other client on the same channel */ }); diff --git a/src/components/client.js b/src/components/client.js index 329c8f9..7e506c0 100644 --- a/src/components/client.js +++ b/src/components/client.js @@ -89,7 +89,7 @@ function Client(scope, queueList, multiplex, serializer, sessions, encrypter) { return { body, client: scope, - reply: scope.write, + reply: scope.write.bind(null, frame.channel), frame: { id: frame.frame, channel: frame.channel,