diff --git a/lib/index.js b/lib/index.js index 4fdce74..f3e5b77 100644 --- a/lib/index.js +++ b/lib/index.js @@ -222,7 +222,7 @@ function RpcBuilder(packer, options, transport, onRequest) function transportMessage(event) { - self.decode(event.data || event); + self.decode(event.data || event.toString()); }; this.getTransport = function()