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

dgram: return self on .bind() and .close() #214

Closed

Commits on Dec 29, 2014

  1. dgram: change Socket.bind() to return itself

    This commit changes `lib/dgram.js` Sockets to, when
    they are bound to a port / IP, return themselves. This
    is done in order to allow chaining of methods and be
    in accordance with the `lib/net.js` library.
    brendanashworth committed Dec 29, 2014
    Configuration menu
    Copy the full SHA
    57332c0 View commit details
    Browse the repository at this point in the history
  2. dgram: changes Socket.close() to return itself

    This commit adds a return statement to the dgram.Socket.close()
    function that returns itself after it finishes. This follows along
    the functionality of the more popular and, dare I say, father-library
    `lib/net.js`.
    brendanashworth committed Dec 29, 2014
    Configuration menu
    Copy the full SHA
    6a2f4b5 View commit details
    Browse the repository at this point in the history