Code Monkey home page Code Monkey logo

Comments (3)

robcolburn avatar robcolburn commented on May 7, 2024

Ah, more information, this warning is posted just before the error.
The 'tcp' module is now called 'net'. Otherwise it should have a similar interface.

The error seems occurs while attempting to include lib/socket.io/transports/flashsocket.js

I think this is triggering the warning, and perhaps the error:
tcp = require('tcp'),

from socket.io.

robcolburn avatar robcolburn commented on May 7, 2024

Nope, that's only triggering the warning.

The error comes when trying to listen to the port.

var temp_server = tcp.createServer(function(socket){

....

});
temp_server.listen(843);

There's a problem with the listen function, and I believe it's firing and Access warning, this all leads to this interesting bit of Node.js code for that listen function.

} else if (!arguments[1]) {
// Don't bind(). OS will assign a port with INADDR_ANY.
// The port can be found with server.address()
self.type = 'tcp4';
self.fd = socket(self.type);
bind(self.fd, arguments[0]);
process.nextTick(function () {
self._doListen();
});
}

The comment is saying the "Don't use bind()", but the code is clearly doing just that.

Maybe it's a comment to us - We've moved to a new "net" class, and a new way of doing things.

Digging down the rabbit hole...

from socket.io.

robcolburn avatar robcolburn commented on May 7, 2024

Commented out the listen(843), but that will probably come back to bite me.

Getting somewhere...
http://brandissimo.com/cdemo/tmp_w1il6

from socket.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.