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:
1
hookio/config.json
Normal file
1
hookio/config.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
28
hookio/monkey.js
Executable file
28
hookio/monkey.js
Executable 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);
|
||||
|
Reference in New Issue
Block a user