From 6e7fb3c6e9e3150d0b3c0d5c03c899b7c90c8815 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 30 Sep 2016 01:03:06 -0400 Subject: [PATCH] bugfix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b613609..7a2b74d 100644 --- a/index.js +++ b/index.js @@ -179,7 +179,7 @@ module.exports.create = function (opts) { machine.emit('tunnelError', msg); } else { - (machine.onerror||machine.onError)(msg); + (machine.onerror||machine.onmessage)(msg); } } else {