Optional
code: numberOptional
reason: stringCloses the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
Optional
code: numberOptional
reason: stringOptional
dataOptional
useBuffer: boolean
Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.