1
0
mirror of https://github.com/balkian/SOJA.git synced 2024-12-27 04:08:12 +00:00

Added nodeTest

This commit is contained in:
J.Fernando Sánchez 2012-03-22 20:17:33 +01:00
parent 0d78cef29f
commit 4860b9d6b9
3 changed files with 13 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ build.properties
.project
.settings/
bin
*.swp
*.swo

1
nodeTest/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

10
nodeTest/app.js Normal file
View File

@ -0,0 +1,10 @@
var io = require('socket.io').listen(3000);
io.sockets.on('connection', function (socket) {
console.log("New connection!");
socket.on('test', function (data,ack) {
console.log(data);
ack("hola");
console.log("I acked");
});
});