ErrorHandler ErrorHandler = void Function(JSAny error) WebSocket error handler Implementation typedef ErrorHandler = void Function(JSAny error);