FlashSocket.IO icon indicating copy to clipboard operation
FlashSocket.IO copied to clipboard

Discovery error with restfiy and socket.io

Open s888 opened this issue 12 years ago • 0 comments

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.

s888 avatar Nov 07 '13 05:11 s888