sendEventEmitter method

dynamic sendEventEmitter(
  1. dynamic method,
  2. dynamic data
)

send reuest emit to socket server use for send message to other peer

Implementation

sendEventEmitter(method, data) async {
  log('sendEventEmitter() [method: $method, data: $data]');
  _socket.emit('request', {
    'method': method,
    'data': data,
  });
}