Last active
March 30, 2019 22:31
-
-
Save Kaperskyguru/e7d318e4b57c61f662880a6ea411c6f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let app = require('express')(); | |
let http = require('http').Server(app); | |
let io = require('socket.io')(http); | |
app.get('/', (req, res) => { | |
res.sendFile(__dirname + '/index.html') | |
}); | |
http.listen(3000, () => { | |
console.log('Listening on port *: 3000'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment