Skip to content

Commit

Permalink
[plugins] Removed socket.io plugin for now. It seems easier to just m…
Browse files Browse the repository at this point in the history
…anually setup socket.io
  • Loading branch information
Marak committed Aug 20, 2012
1 parent 47b825b commit 4026d79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 124 deletions.
24 changes: 13 additions & 11 deletions examples/socket.io/server.js
Expand Up @@ -15,22 +15,24 @@ app.use(flatiron.plugins.http, {
res.writeHead(200);
res.end(data);
});

}]
});

app.use(flatiron.plugins.socketio)

// Set the server to listen on port `8080`.
// It is important to do this first, as app.server
// isn't actually created until you start()
app.start(8080, function(){
// Socket.io
// -------------------------------------------------- //
app.io.sockets.on('connection', function(socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function(data) {
console.log(data);
});
});
});
app.start(8080);

// Socket.io
// -------------------------------------------------- //

var io = require('socket.io').listen(app.server);

io.sockets.on('connection', function(socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function(data) {
console.log(data);
});
});
113 changes: 0 additions & 113 deletions lib/flatiron/plugins/socketio.js

This file was deleted.

0 comments on commit 4026d79

Please sign in to comment.