Skip to content

Discovery error with restfiy and socket.io #23

@s888

Description

@s888

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions