onClose property

dynamic Function(int? code, String? reaso)? onClose
getter/setter pair

Callback invoked when the WebSocket connection is closed.

Implementation

Function(int? code, String? reaso)? onClose;