|
|
|
@ -46,9 +46,11 @@ typedef NS_ENUM(NSInteger, GRPCCompressAlgorithm) { |
|
|
|
|
+ (void)setDefaultCompressMethod:(GRPCCompressAlgorithm)algorithm |
|
|
|
|
forhost:(nonnull NSString *)host; |
|
|
|
|
|
|
|
|
|
/** Configure keepalive timeout parameters. A client ping after \a interval ms to check if the
|
|
|
|
|
* transport is still alive. After waiting for \a timeout ms, if the client does not receive the |
|
|
|
|
* ping ack, it closes the transport. */ |
|
|
|
|
/** Enable keepalive and configure keepalive parameters. A user should call this function once to
|
|
|
|
|
* enable keepalive for a particular host. gRPC client sends a ping after every \a interval ms to |
|
|
|
|
* check if the transport is still alive. After waiting for \a timeout ms, if the client does not |
|
|
|
|
* receive the ping ack, it closes the transport; all pending calls to this host will fail with |
|
|
|
|
* error GRPC_STATUS_INTERNAL with error information "keepalive watchdog timeout". */ |
|
|
|
|
+ (void)setKeepaliveWithInterval:(int)interval |
|
|
|
|
timeout:(int)timeout |
|
|
|
|
forHost:(nonnull NSString *)host; |
|
|
|
|