Browse Source

Update 'index.js'

master
StratosKarvounis 4 years ago
parent
commit
5b26b832a0
  1. 4
      index.js

4
index.js

@ -5,12 +5,12 @@ var io = require('socket.io')(http);
const cors = require('cors') const cors = require('cors')// epitrepi sundeseis apo cross origin
app.use(cors()); app.use(cors());
io.on('connection', s => { io.on('connection', s => {
console.error('socket connection'); console.error('socket connection');
//perimeno na steilei dedomena o client kai otan ta steilei ta ektuponi.
io.on('data', function(s) { io.on('data', function(s) {
console.log('Got', s); console.log('Got', s);
}) })

Loading…
Cancel
Save