lune-org / lune

A standalone Luau runtime
https://lune-org.github.io/docs
Mozilla Public License 2.0
357 stars 82 forks source link

Add support for UDP socket #208

Open 4x8Matrix opened 3 months ago

4x8Matrix commented 3 months ago

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?

CompeyDev commented 3 months ago

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!).