closed property
The argument is actually the websocket CloseEvent
, but to avoid
bundling DOM typings because the client can run in Node env too,
you should assert the websocket type during implementation.
Implementation
final T? Function(Object event)? closed;