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,