moll / node-mitm

Intercept and mock outgoing Node.js network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Super useful when testing code that hits remote servers.
Other
636 stars 48 forks source link

Could you add UDP? #2

Open HilkoLantinga opened 10 years ago

HilkoLantinga commented 10 years ago

I'm looking for an UDP (dgram) stub, this package sounds perfect, it just does not do UDP. ;)

moll commented 10 years ago

Hey,

Good idea! Thanks. I'll take a look! ;-)

moll commented 9 years ago

Hey again! Are you testing your UDP server at all right now? Creating a local server and connecting to that inside tests perhaps?

HilkoLantinga commented 9 years ago

Did you add it?

moll commented 9 years ago

Not yet, but will. ;-)

nicolaspanel commented 8 years ago

hi @moll, is it still in your roadmap?

moll commented 8 years ago

Absolutely. I haven't looked too much into it yet though. Do you have any familiarity with Node's UDP internals?

nicolaspanel commented 8 years ago

No, actually I'm using an external c++ library that use UDP internally. I've heard about dgram but I've never used it.

aguiraf commented 6 years ago

It would be very useful!