Init. Map does not function and only working on backend at the moment.
This commit is contained in:
15
node_modules/socketio/index.js
generated
vendored
Normal file
15
node_modules/socketio/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
var app = require('express')();
|
||||
var http = require('http').Server(app);
|
||||
var io = require('socket.io')(http);
|
||||
|
||||
app.get('/', function(req, res){
|
||||
res.sendfile('index.html');
|
||||
});
|
||||
|
||||
io.on('connection', function(socket){
|
||||
console.log('a user connected');
|
||||
});
|
||||
|
||||
http.listen(3000, function(){
|
||||
console.log('listening on *:3000');
|
||||
});
|
Reference in New Issue
Block a user