cp.websocket.status

A table of statuses used by both cp.websocket.serial and cp.websocket.http to describe the connection status.


API Overview

Constants - Useful values which cannot be changed

  • closed
  • closing
  • open
  • opening

API Documentation

Constants

closed

   
Signature cp.websocket.status.closed <string>
Type Constant
Description The socket is closed.
Notes None
Source src/extensions/cp/websocket/status.lua line 17

closing

   
Signature cp.websocket.status.closing <string>
Type Constant
Description The socket is attempting to close.
Notes None
Source src/extensions/cp/websocket/status.lua line 13

open

   
Signature cp.websocket.status.open <string>
Type Constant
Description The socket is open.
Notes None
Source src/extensions/cp/websocket/status.lua line 9

opening

   
Signature cp.websocket.status.opening <string>
Type Constant
Description The socket is attempting to open.
Notes None
Source src/extensions/cp/websocket/status.lua line 5