Rantanen / node-dtls

JavaScript DTLS implementation for Node.js
ISC License
58 stars 15 forks source link

ability to pass in existing/bound socket #10

Closed nickdesaulniers closed 8 years ago

nickdesaulniers commented 8 years ago

it would neat of the API for this lib allowed for you to pass in an already created, and possibly already bound socket object, to be used as a server!

nickdesaulniers commented 8 years ago

oh looks like I can require dtls/DtlsServer and call the constructor directly! https://github.com/Rantanen/node-dtls/blob/master/DtlsServer.js#L11

nickdesaulniers commented 8 years ago

or, it's already exported, nice! https://github.com/Rantanen/node-dtls/blob/master/index.js#L18

nickdesaulniers commented 8 years ago

also, you should check this lib out for generating self signed certs entirely in JS: https://github.com/jfromaniello/selfsigned might be helpful for tests/examples