Package proto.rpc.webrtc.v1
Class SignalingServiceGrpc.SignalingServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<SignalingServiceGrpc.SignalingServiceStub>
io.grpc.stub.AbstractAsyncStub<SignalingServiceGrpc.SignalingServiceStub>
proto.rpc.webrtc.v1.SignalingServiceGrpc.SignalingServiceStub
- Enclosing class:
SignalingServiceGrpc
public static final class SignalingServiceGrpc.SignalingServiceStub
extends io.grpc.stub.AbstractAsyncStub<SignalingServiceGrpc.SignalingServiceStub>
A stub to allow clients to do asynchronous rpc calls to service SignalingService.
A SignalingService provides the means to have one client "call" another client using the Session Description Protocol (SDP).
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.stub.StreamObserver<Signaling.AnswerResponse> answer(io.grpc.stub.StreamObserver<Signaling.AnswerRequest> responseObserver) Answer sets up an answering service where the caller answers call offers and responds with answers.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcall(Signaling.CallRequest request, io.grpc.stub.StreamObserver<Signaling.CallResponse> responseObserver) Call makes an offer to a client that it expects an answer to.voidcallUpdate(Signaling.CallUpdateRequest request, io.grpc.stub.StreamObserver<Signaling.CallUpdateResponse> responseObserver) CallUpdate is used to send additional info in relation to a Call.voidoptionalWebRTCConfig(Signaling.OptionalWebRTCConfigRequest request, io.grpc.stub.StreamObserver<Signaling.OptionalWebRTCConfigResponse> responseObserver) OptionalWebRTCConfig returns any WebRTC configuration the caller may want to use.voidreportConnectionMetadata(Signaling.ReportConnectionMetadataRequest request, io.grpc.stub.StreamObserver<Signaling.ReportConnectionMetadataResponse> responseObserver) ReportConnectionMetadata reports metadata about a WebRTC connection attempt.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SignalingServiceGrpc.SignalingServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SignalingServiceGrpc.SignalingServiceStub>
-
call
public void call(Signaling.CallRequest request, io.grpc.stub.StreamObserver<Signaling.CallResponse> responseObserver) Call makes an offer to a client that it expects an answer to. The host of the client in question should be identified in the rpc-host metadata field. Note: Based on how this is a server streaming responnse to the caller, we do not have a good way of knowing if the caller has disappeared. Depending on answerer timeouts and concurrency limits, this can result in hangs on the answerer waiting for a connection to establish, which in turn can result in the caller waiting for an answerer to be listening.
-
callUpdate
public void callUpdate(Signaling.CallUpdateRequest request, io.grpc.stub.StreamObserver<Signaling.CallUpdateResponse> responseObserver) CallUpdate is used to send additional info in relation to a Call. The host of the client for the call in question should be identified in the rpc-host metadata field. In a world where https://github.com/grpc/grpc-web/issues/24 is fixed, this should be removed in favor of a bidirectional stream on Call.
-
answer
public io.grpc.stub.StreamObserver<Signaling.AnswerResponse> answer(io.grpc.stub.StreamObserver<Signaling.AnswerRequest> responseObserver) Answer sets up an answering service where the caller answers call offers and responds with answers. The host(s) to answer for should be in the rpc-host metadata field.
-
optionalWebRTCConfig
public void optionalWebRTCConfig(Signaling.OptionalWebRTCConfigRequest request, io.grpc.stub.StreamObserver<Signaling.OptionalWebRTCConfigResponse> responseObserver) OptionalWebRTCConfig returns any WebRTC configuration the caller may want to use. The host to get a config for must be in the rpc-host metadata field.
-
reportConnectionMetadata
public void reportConnectionMetadata(Signaling.ReportConnectionMetadataRequest request, io.grpc.stub.StreamObserver<Signaling.ReportConnectionMetadataResponse> responseObserver) ReportConnectionMetadata reports metadata about a WebRTC connection attempt. The host must be in the rpc-host metadata field.
-