receivedConnectionRequest method

void receivedConnectionRequest(
  1. UserJoinedData data
)

Implementation

void receivedConnectionRequest(UserJoinedData data) async {
  final connection = await createConnection(data);
  if (connection != null) {
    sendOfferSdp(data.userId!);
  }
}