Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

possible fix for socket.io logging error

  • Loading branch information...
commit 3ad3c221b998796538e6bede224f0411ef356564 1 parent c8239bc
@substack authored
Showing with 9 additions and 1 deletion.
  1. +8 −0 lib/stream_socketio.js
  2. +1 −1  package.json
View
8 lib/stream_socketio.js
@@ -53,7 +53,15 @@ module.exports = function (webserver, mount, ioOptions) {
}
var sock = io.listen(webserver, ioOptions);
+ sock.set('logger', {
+ error : function () {},
+ warn : function () {},
+ info : function () {},
+ debug : function () {}
+ });
+
var server = new EventEmitter;
+ server.socket = sock;
if (mount && webserver.use) {
webserver.use(function (req, res, next) {
View
2  package.json
@@ -1,6 +1,6 @@
{
"name" : "dnode",
- "version" : "0.9.3",
+ "version" : "0.9.4",
"description" : "freestyle RPC",
"main" : "./index.js",
"keywords" : [
Please sign in to comment.
Something went wrong with that request. Please try again.