addPendingAcceptConnection method

Device addPendingAcceptConnection(
  1. String endpointId,
  2. Uint8List endpointName
)

Adds a device in pendingAcceptConnections set.

Implementation

Device addPendingAcceptConnection(String endpointId, Uint8List endpointName) {
  var device = Device.asPendingConnection(endpointId, endpointName);
  pendingAcceptConnections.add(device);
  return device;
}