# Installation\r
-* Get the Kiwi source and dependencies\r
\r
- $git clone https://github.com/prawnsalad/KiwiIRC.git\r
- $npm install\r
+* Install the dependencies\r
+\r
+ $npm install jade\r
+\r
+ $npm install node-static\r
+\r
+ $npm install uglify-js\r
+\r
+ $npm install socket.io\r
+\r
+ $npm install socket.io-client\r
\r
-* Create your SSL certificate and key, place it in the server folder.\r
+* If you're using SSL, create your certificate and key, place it in the server folder.\r
\r
* Edit the configuration file\r
\r
$nano server/config.json\r
\r
# Running \r
-Either use npm\r
-\r
- $npm start\r
-\r
-or run node directly\r
-\r
$node server/kiwi.js\r
\r
# Bugs\r
break;\r
default:\r
// We don't know what data contains, so don't do anything with it.\r
- //kiwi.front.tabviews.server.addMsg(null, ' ', '=== ' + data, 'status');\r
+ console.log(e, data);\r
}\r
},\r
\r
kiwi.gateway.socket.on('reconnect_failed', function () {
console.log("kiwi.gateway.socket.on('reconnect_failed')");
});
+ kiwi.gateway.socket.on('error', console.log);
}
},
+++ /dev/null
-{
- "scripts": {
- "start": "node server/kiwi.js"
- },
- "name": "KiwiIRC",
- "version": "0.1.0-dev",
- "homepage": "http://kiwiirc.com",
- "repository" : {
- "type" : "git",
- "url" : "https://github.com/prawnsalad/KiwiIRC.git"
- },
- "dependencies": {
- "jade": ">=0.16.2",
- "node-static": ">=0.5.9",
- "uglify-js": ">=1.1.1",
- "socket.io": ">=0.8.5",
- "socket.io-client": ">=0.8.5"
- },
- "private": true
-}
}
callback(null, true);
}).on('connection', kiwi.websocketConnection);
+ io.of('/kiwi').on('error', console.log);
});
};
});
websocket.on('message', kiwi.websocketMessage);
websocket.on('disconnect', kiwi.websocketDisconnect);
+ websocket.on('error', console.log);
}
};
});
bound_events = kiwi.bindIRCCommands(that, websocket);
};
+
+ that.on('error', console.log);
+
};