lune-org/lune

Add support for UDP socket

Opened this issue · 1 comments

Summary

At the moment Lune has no support for UDP sockets in it's standard @lune/net library.

On a personal project I am working on - Discord requires support for UDP sockets in order to receive and send encrypted voice data, i'm requesting that at some point we look into support UDP sockets, and ideally structuring the UDP socket the same way we handle TCP sockets.

Considerations

net.socket would be too generic?

Ideally we'd swap this to net.tcpSocket, and then introduce net.udpSocket?

I already have an impl for this in place, I might be able to take the time within this week to create a PR (no guarantees, sorry!).