FlashSocket.IO
FlashSocket.IO copied to clipboard
Discovery error with restfiy and socket.io
Hi,
When i use socket = new FlashSocket("localhost:8080/socket"); I get discovery error
Node snippet: (In app.js) app.get('/socket', socket.handle); app.post('/socket', socket.handle);
app.listen(8080, function() { console.log('%s listening at %s', app.name, app.url); });
var io = require('socket.io').listen(app); exports.io = io;
(In routes) exports.handle = function (req, res, next) { console.log('In Handle'); //doesn't print this io.sockets.on('connection', function(client){ console.log('Connection establiished'); });
Routing works just fine but flash socket is not able to discover the location.
Please advice.