Created
August 4, 2016 12:43
-
-
Save JerzySpendel/574ca817a7693d1d044cc2686f45c610 to your computer and use it in GitHub Desktop.
This file contains 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
'use strict'; | |
var io = require('socket.io')() | |
io.on('connection', function(socket) { | |
console.log('poloczono'); | |
socket.on('hello', function(data) { | |
console.log(data); | |
socket.emit('hello', data); | |
}); | |
}); | |
io.listen(3001); | |
console.log("Express server listening"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment