interface WebSocketCloseEvent Since 0.2.0 Payload of a WebSocket close, normalized across runtimes. Properties readonly code: number The RFC 6455 close code (e.g. 1000 normal, 1001 going away). readonly reason: string The close reason; an empty string when the peer supplied none.