property WebSocketCloseEvent.reason

The close reason; an empty string when the peer supplied none.

Type

string

Usage

import { type WebSocketCloseEvent } from "common/src/index.ts";