These are chat archives for n4utilius/curso-websockets-kmmx

17th
Jan 2015
Kevin Martínez
@n4utilius
Jan 17 2015 16:02
otro conversor http://html2jade.org/
Kevin Martínez
@n4utilius
Jan 17 2015 16:11
10479460_702503599815740_942493624367654090_n.png
adancontrerasmma88
@adancontrerasmma88
Jan 17 2015 17:39
"socket.io": "^0.9.16"

module.exports = function (io) {
'use strict';
io.on('connection', function (socket) {
socket.broadcast.emit('user connected');

socket.on('message', function (from, msg) {

  console.log('recieved message from', from, 'msg', JSON.stringify(msg));

  console.log('broadcasting message');
  console.log('payload is', msg);
  io.sockets.emit('broadcast', {
    payload: msg,
    source: from
  });
  console.log('broadcast complete');
});

});
};

adancontrerasmma88
@adancontrerasmma88
Jan 17 2015 17:45
io = require('socket.io'),
http = require('http'),
app = express(),
server = http.createServer(app),
io = io.listen(server),
Kevin Martínez
@n4utilius
Jan 17 2015 19:25
cliente de sockeIO para arduino https://github.com/billroy/socket.io-arduino-client
Kevin Martínez
@n4utilius
Jan 17 2015 19:37
jeshc
@jeshc
Jan 17 2015 21:08
db.unicorns.find({$and:[{$or:[{loves:'apple'},{loves:'carrot'}]},{weight:{$gt:500}}]},{name:1,loves:1,_id:0,weight:1})