OnWSError typedef Null safety

OnWSError = void Function(Object error)

Implementation

typedef OnWSError = void Function(Object error);