websocket.error

local beast = require 'beast'

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

An userdata for which the __index() metamethod returns a new error code from the beast category on access.

Error list

  • 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