Skip to content

std:net module

Experimental

The std:net module exposes TCP listeners and connected sockets, mirroring Rust's networking primitives.

PropertyValue
Namespacestd
Sourcesrc/lua/std/net.rs
Teststests/std/net.test.luau
StabilityExperimental
Mirrorstd::net

Syntax

lua
local net = require("std:net")

Description

WARNING

This reference page is a stub. The full Lua surface is captured in the module source listed above and exercised by the test file. A spec PR following the spec-driven development workflow will land the contracted surface here.

Until that lands, the source and tests are the contract.

See also