handleCall method

Future<GeneratedMessage> handleCall(
  1. ServerContext ctx,
  2. String methodName,
  3. GeneratedMessage request
)
override

Dispatches the call. The request object should come from createRequest.

Implementation

$async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx, $core.String methodName, $pb.GeneratedMessage request) {
  switch (methodName) {
    case 'SetPublisher': return this.setPublisher(ctx, request as $1.SetPublisherRequest);
    case 'SendAnswer': return this.sendAnswer(ctx, request as $1.SendAnswerRequest);
    case 'IceTrickle': return this.iceTrickle(ctx, request as $0.ICETrickle);
    case 'UpdateSubscriptions': return this.updateSubscriptions(ctx, request as $1.UpdateSubscriptionsRequest);
    case 'UpdateMuteStates': return this.updateMuteStates(ctx, request as $1.UpdateMuteStatesRequest);
    case 'IceRestart': return this.iceRestart(ctx, request as $1.ICERestartRequest);
    case 'SendStats': return this.sendStats(ctx, request as $1.SendStatsRequest);
    case 'StartNoiseCancellation': return this.startNoiseCancellation(ctx, request as $1.StartNoiseCancellationRequest);
    case 'StopNoiseCancellation': return this.stopNoiseCancellation(ctx, request as $1.StopNoiseCancellationRequest);
    default: throw $core.ArgumentError('Unknown method: $methodName');
  }
}