handleCall method
Future<GeneratedMessage>
handleCall(
- ServerContext ctx,
- String methodName,
- 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 'createRoom':
return this.createRoom(ctx, request as $12.CreateRoomRequest);
case 'joinRoom':
return this.joinRoom(ctx, request as $12.JoinRoomRequest);
case 'createTransportOnServer':
return this.createTransportOnServer(
ctx, request as $12.CreateTransportRequest);
case 'connectTransportOnServer':
return this.connectTransportOnServer(
ctx, request as $12.ConnectTransportRequest);
case 'produce':
return this.produce(ctx, request as $12.ProduceRequest);
case 'produceData':
return this.produceData(ctx, request as $12.ProduceDataRequest);
case 'consume':
return this.consume(ctx, request as $12.ConsumeRequest);
case 'closeProducer':
return this.closeProducer(ctx, request as $12.CloseProducerRequest);
case 'batchCloseProducers':
return this.batchCloseProducers(
ctx, request as $12.BatchCloseProducersRequest);
case 'closeConsumer':
return this.closeConsumer(ctx, request as $12.CloseConsumerRequest);
case 'batchCloseConsumers':
return this.batchCloseConsumers(
ctx, request as $12.BatchCloseConsumersRequest);
case 'resumeConsumer':
return this.resumeConsumer(ctx, request as $12.ResumeConsumerRequest);
case 'createDataConsumer':
return this
.createDataConsumer(ctx, request as $12.createDataConsumerRequest);
case 'restartTransportIce':
return this.restartTransportIce(ctx, request as $12.RestartIceRequest);
case 'closePeer':
return this.closePeer(ctx, request as $12.ClosePeerRequest);
case 'closeRoom':
return this.closeRoom(ctx, request as $12.CloseRoomRequest);
case 'createPipeTransport':
return this.createPipeTransport(
ctx, request as $12.CreatePipeTransportRequest);
case 'connectPipeTransport':
return this.connectPipeTransport(
ctx, request as $12.ConnectPipeTransportRequest);
case 'pipeProducer':
return this.pipeProducer(ctx, request as $12.PipeProduceRequest);
case 'pipeConsumer':
return this.pipeConsumer(ctx, request as $12.PipeConsumeRequest);
default:
throw $core.ArgumentError('Unknown method: $methodName');
}
}