How to use the listen function from socket.io

Find comprehensive JavaScript socket.io.listen code examples handpicked from public code repositorys.

0
1
2
3
4
5
6
7
8
9
var socketIO = require('socket.io'),
    uuid = require('node-uuid'),
    crypto = require('crypto');

module.exports = function (server, config) {
    var io = socketIO.listen(server);

    io.sockets.on('connection', function (client) {
        client.resources = {
            screen: false,
fork icon496
star icon0
watch icon91

+ 3 other calls in file