error method
void
error(
- dynamic err
Produces an error
packet.
@param {Object} error object @api private
Implementation
void error(err) {
packet(<dynamic, dynamic>{'type': errorValue, 'data': err});
}