Written to a socket, closes it with code (1000 is a normal
close).
Attributes#
| Attribute | Type | Description |
|---|---|---|
code | int = 1000 | |
reason | str | None = None |
Functions#
__init__#
__init__(code=1000, reason=None) -> None| Parameter | Type | Description |
|---|---|---|
code | int = 1000 | |
reason | str | None = None |