1
0
mirror of https://github.com/balkian/Web4.0.git synced 2025-08-31 18:42:21 +00:00

Deleted submodules

This commit is contained in:
J.Fernando Sánchez
2012-03-15 14:28:37 +01:00
parent a6c57ef30c
commit c54ae367be
6 changed files with 36 additions and 3 deletions

1
hookio/config.json Normal file
View File

@@ -0,0 +1 @@
{}

28
hookio/monkey.js Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/nodejs
var Hook = require('hook.io').Hook,
express = require('express'),
app = express.createServer(),
io = require('socket.io').listen(app);
app.listen(8008);
io.sockets.on('connection', function (socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function (data) {
console.log(data);
});
});
var monkey = new Hook({
name: "monkey-hook",
debug: true
});
monkey.on('hook::ready', function () {
console.log('I am online :D');
});
monkey.start(1337);