Skip to content

Both Provided

Both Provided RPC is implemented by both sides of the connection. Either Client or Server can be used as caller or provider, which is used for connection diagnosis and transport measurement without reading the unique product resources of one end.

Methods

MethodFunctionImplementation requirements
all.pingVerify that the RPC request/response path is availableBoth Client and Server return Ping response
all.speed_test.runPerform throughput test on RPC streamBoth Client and Server process speed-test stream

Calling relationship

all.* Only suitable for truly symmetrical basic abilities. Data or behavior owned only by one end must use client.* or server.*, and cannot be placed in all.* for the purpose of reusing the handler.