# WebSocket_CloseOption ## Overview Defines the parameters for the proactive connection closure initiated by the WebSocket client. **Since**: 11 **Related module**: [Netstack](netstack.md) ## Summary ### Member Variables | Name| Description| | -------- | -------- | | [code](netstack.md#code-23) | Error code for the connection closure.| | [reason](netstack.md#reason-23) | Error cause for the connection closure.|