- text, code = websocket:lastError()
- websocket:clearError()
SYNOPSIS
DESCRIPTION
When any of the data transfer functions return an error condition, the error is stored inside the object handle and can be retrieved by calling websocket:lastError().
When the error has been handled by the application, it can be cleared by calling websocket:clearError().
RETURN VALUE
If an error has been stored, returns two values: a string describing the error and an error code.
The error code is passed verbatim from the underlying WsLay websocket library.
If no error has been stored, returns nil.