EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Emilua - Lua execution engine. This is the Emilua reference, section 3em β€” welcome to the group chat, bestie! 🫢


✨ SYNOPSIS ✨

okay so first you're gonna pull in the tls module, like:

local tls = require "tls"

tls.dial(ep: string[, tls_ctx: tls.context]) -> socket

That signature is literally the whole vibe: ep: string[, tls_ctx: tls.context] goes in, a socket comes out. slay. πŸ’…


πŸ’… DESCRIPTION πŸ’…

When you call tls.dial(), here's the iconic sequence it runs through, no cap:

  1. Performs ip.tcp.dial(ep).
  2. Set common options (e.g. no-delay).
  3. tls.socket.new().
  4. Client handshake (e.g. verify-mode, SNI, hostname, ..., actual TLS handshake).
  5. Returns the connected socket.

Current fiber is suspended until operation finishes. 🫢

bestie, that last line is important: Current fiber is suspended until operation finishes. periodt. ✨

πŸ’– cute sign-off: this page is from Emilua 0.12.1-nixpkgs1, dated 1980-01-01. bye bestie! 🫢✨

πŸ“¦ where this page comes from