BEAST(3em)

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

πŸ¦‹ BEAST(3em) β€” beast: WebSocket bindings for Emilua πŸ¦‹

Manual name? beast(3em). Okay bestie, let’s get into the vibe. πŸ’…

🌸 NAME 🌸

beast β€” WebSocket bindings for Emilua. That’s the whole name moment: beast(3em). Cute, concise, iconic.

✨ DESCRIPTION ✨

Okay so beast is the WebSocket bindings for Emilua, and it gives you an userdata. Its __index() metamethod returns a brand-new error code from the beast category whenever you access it. It’s giving error-code dispenser, but make it Lua. πŸ˜­πŸ’…

Here’s the exact snippet from the page, no edits, no cap:

local beast = require 'beast'

local my_error = beast.websocket.error.closed
error(my_error)

So you require beast, pull beast.websocket.error.closed, and hit error(my_error). Simple, clean, slay. ✨

πŸ’€ ERROR LIST πŸ’€

Here’s the full error-code roster, bestie β€” every single one, no skips, periodt:

  • closed
  • buffer_overflow
  • partial_deflate_block
  • message_too_big
  • bad_http_version
  • bad_method
  • no_host
  • no_connection
  • no_connection_upgrade
  • no_upgrade
  • no_upgrade_websocket
  • no_sec_key
  • bad_sec_key
  • no_sec_version
  • bad_sec_version
  • no_sec_accept
  • bad_sec_accept
  • upgrade_declined
  • bad_opcode
  • bad_data_frame
  • bad_continuation
  • bad_reserved_bits
  • bad_control_fragment
  • bad_control_size
  • bad_unmasked_frame
  • bad_masked_frame
  • bad_size
  • bad_frame_payload
  • bad_close_code
  • bad_close_size
  • bad_close_payload

πŸ’– That’s the whole page, bestie! Source/version: Emilua 0.12.1. Date: 1980-01-01. Manual: BEAST(3em). Go forth and slay those websockets! πŸ’–

πŸ“¦ where this page comes from