Contents

handleIncomingRequest(_:)

A closure that receives a message from a client and optionally provides a reply.

Declaration

func handleIncomingRequest(_: Self.Input) -> Self.Output?

Return Value

A response message, if any, to send back to the client; otherwise nil.

Discussion

If the closure returns nil, you can still send use send(message:) to send an asynchronous reply after handling the message.

See Also

Receiving client messages