123 unsigned char *buf,
size_t len);
LWS_VISIBLE LWS_EXTERN void lws_close_reason(struct lws *wsi, enum lws_close_status status, unsigned char *buf, size_t len)
@ LWS_CLOSE_STATUS_PROTOCOL_ERR
@ LWS_CLOSE_STATUS_MESSAGE_TOO_LARGE
@ LWS_CLOSE_STATUS_NOSTATUS_CONTEXT_DESTROY
@ LWS_CLOSE_STATUS_NORMAL
@ LWS_CLOSE_STATUS_UNACCEPTABLE_OPCODE
@ LWS_CLOSE_STATUS_NO_STATUS
@ LWS_CLOSE_STATUS_ABNORMAL_CLOSE
@ LWS_CLOSE_STATUS_INVALID_PAYLOAD
@ LWS_CLOSE_STATUS_GOINGAWAY
@ LWS_CLOSE_STATUS_CLIENT_TRANSACTION_DONE
@ LWS_CLOSE_STATUS_EXTENSION_REQUIRED
@ LWS_CLOSE_STATUS_NOSTATUS
@ LWS_CLOSE_STATUS_UNEXPECTED_CONDITION
@ LWS_CLOSE_STATUS_POLICY_VIOLATION
@ LWS_CLOSE_STATUS_TLS_FAILURE
@ LWS_CLOSE_STATUS_RESERVED