1# WebSocket_CloseOption 2 3## Overview 4 5Defines the parameters for the proactive connection closure initiated by the WebSocket client. 6 7**Since**: 11 8 9**Related module**: [netstack](capi-netstack.md) 10 11**Header file**: [net_websocket_type.h](capi-net-websocket-type-h.md) 12 13## Summary 14 15### Member Variables 16 17| Name| Description| 18| -- | -- | 19| uint32_t code | Error code.| 20| const char *reason | Error cause.| 21