Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discovery error with restfiy and socket.io #23

Open
s888 opened this issue Nov 7, 2013 · 0 comments
Open

Discovery error with restfiy and socket.io #23

s888 opened this issue Nov 7, 2013 · 0 comments

Comments

@s888
Copy link

s888 commented Nov 7, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant