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

Can't disable flash policy server #565

Closed
dasony opened this issue Oct 11, 2011 · 5 comments
Closed

Can't disable flash policy server #565

dasony opened this issue Oct 11, 2011 · 5 comments
Labels
bug Something isn't working

Comments

@dasony
Copy link

dasony commented Oct 11, 2011

Even when I set 'flash policy server' option to false, it still runs the policy server on 10843 port.

io.configure(function() {
   io.set('flash policy server', false);
   io.disable('flash policy server');
   io.set('transports', [ 'websocket' , 'flashsocket' , 'htmlfile' , 'xhr-polling', 'jsonp-polling']);
});

I grep'ed the whole socket.io library, but I couldn't find any routine for checking 'flash policy server' option. I suspect it has been removed by mistake during upgrades.

@3rd-Eden
Copy link
Contributor

Yes, it seems to be missing ;o marked as bug

@dekart
Copy link

dekart commented Jun 25, 2012

Any progress on this?

@AVBelyy
Copy link

AVBelyy commented Jul 19, 2012

+1, still no lines in the code using 'flash policy server' option.
Also seems there' s no way to run policy server on the same port as Socket.IO server. For doing this, I have to up simple HTTP server which sends contents of 'crossdomain.xml' by request:

// basic HTTP server                                                           
function httpHandler(req, res) {                                               
    if(req.url == '/crossdomain.xml') {                                        
        fs.readFile(__dirname + req.url, function(err, data) {                 
            res.writeHead(200, {"Content-Type": "text/x-cross-domain-policy"});
            res.end(data);                                                     
        });                                                                    
    }                                                                          
}

Do you have any suggestions how to up Socket.IO and FlashPolicy servers on the same port?

@throrin19
Copy link

Any progress on this?

@3rd-Eden
Copy link
Contributor

if you just disable flashsockets in your transport list, it should start it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants