mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
13 lines
No EOL
302 B
JavaScript
13 lines
No EOL
302 B
JavaScript
/* module make possible connectoin thrue socket.io on a server */
|
|
|
|
var CloudServer;
|
|
|
|
var io = require('socket.io').listen(CloudServer.Server);
|
|
|
|
io.sockets.on('connection', function (socket) {
|
|
socket.on('message', function (data) {
|
|
console.log(data);
|
|
});
|
|
|
|
socket.on('disconnect', function () { });
|
|
}); |