code: function failedConnectionHandler(failedConnection) {
    var peer = {
      peerIdentifier: failedConnection.peerIdentifier,
      peerAvailable: false,
      generation: failedConnection.generation,
      portNumber: null,
      recreated: failedConnection.recreated
    };
    handlePeerAvailabilityChanged(peer);
  
    var event = {
      error: failedConnection.error,
      peerIdentifier: failedConnection.peerIdentifier,
      recreated: failedConnection.recreated,
      connectionType: connectionTypes.BLUETOOTH
    };
    module.exports.emitter.emit('failedNativeConnection', event);
  }
docs: /*
  METHODS