mirror of https://github.com/balkian/Web4.0.git
Deleted submodules
parent
a6c57ef30c
commit
c54ae367be
@ -1,2 +1,3 @@
|
||||
tests
|
||||
configuration
|
||||
node_modules
|
||||
|
@ -1,6 +1,6 @@
|
||||
[submodule "hookio/hooks/Mailer"]
|
||||
path = hookio/hooks/Mailer
|
||||
url = https://github.com/balkian/Hookio-Mailer.git
|
||||
#[submodule "hookio/hooks/Mailer"]
|
||||
# path = hookio/hooks/Mailer
|
||||
# url = https://github.com/balkian/Hookio-Mailer.git
|
||||
#[submodule "configuration"]
|
||||
# path = configuration
|
||||
# url = git@bitbucket.org:balkian/web4.0-configuration.git
|
||||
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -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);
|
||||
|
Loading…
Reference in New Issue