Permalink
Browse files

also emit the rpc events directly on the client, to allow for more fl…

…exibility
  • Loading branch information...
1 parent b02dd16 commit 2182e56d38234aba331ca4ff69be41de6d170ca5 @youurayy committed Feb 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ws-rpc.js
View
@@ -72,6 +72,7 @@ module.exports.extend = function(ws) {
client.send(JSON.stringify(rmsg), {}, handle(client)); //[3]
});
+ client.emit.apply(client, msg.a);
msg.a.splice(1, 0, client);
server.emit.apply(server, msg.a); //[2]
}

0 comments on commit 2182e56

Please sign in to comment.