Skip to content

heading towards a solid v1.0 #15

@coolaj86

Description

@coolaj86

This is the direction I'm heading:

https://github.com/coolaj86/node-nat-upnp/blob/v1.0/lib/nat-upnp/ssdp.js

  • switched from shimmed EventEmitter promise-ish things to proper Promises using global.Promise || require('bluebird').Promise
  • pulled the async code out of the constructor (since you can't pass callbacks or return promises from a constructor) and moved it to an init()
  • removed mutual dependencies

I plan to switch it to return however many IGDs respond.

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