mirror of
https://github.com/balkian/SOJA.git
synced 2024-12-28 12:48:12 +00:00
Added nodeTest
This commit is contained in:
parent
0d78cef29f
commit
4860b9d6b9
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@ build.properties
|
|||||||
.project
|
.project
|
||||||
.settings/
|
.settings/
|
||||||
bin
|
bin
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
1
nodeTest/.gitignore
vendored
Normal file
1
nodeTest/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules
|
10
nodeTest/app.js
Normal file
10
nodeTest/app.js
Normal 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");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user