CloseOptions

Playwright\WebSocket\Options\CloseOptions

Constructor options

OptionTypeDefault
code ?int null
reason ?string null

Methods

__construct()

function __construct( public ?int $code = null, public ?string $reason = null, )

toArray()

array
function toArray(): array

from()

self
function from(array|self $options = []): self