error method

void error(
  1. dynamic err
)

Produces an error packet.

@param {Object} error object @api private

Implementation

void error(err) {
  packet(<dynamic, dynamic>{'type': errorValue, 'data': err});
}