Class: ListenerBuilder

src/client_interceptors~ ListenerBuilder


new ListenerBuilder()

A builder for listener interceptors.

Methods


build()

Builds the call listener.

Returns:
Type
grpc~Listener

withOnReceiveMessage(on_receive_message)

Adds an onReceiveMessage method to the builder.

Parameters:
Name Type Description
on_receive_message MessageListener

A listener method for receiving messages.

Returns:
Type
ListenerBuilder

withOnReceiveMetadata(on_receive_metadata)

Adds an onReceiveMetadata method to the builder.

Parameters:
Name Type Description
on_receive_metadata MetadataListener

A listener method for receiving metadata.

Returns:
Type
ListenerBuilder

withOnReceiveStatus(on_receive_status)

Adds an onReceiveStatus method to the builder.

Parameters:
Name Type Description
on_receive_status StatusListener

A listener method for receiving status.

Returns:
Type
ListenerBuilder