Method
channelReadComplete(context:)
Called when the Channel has completed its current read loop, either because no more data is available to read from the transport at this time, or because the Channel needs to yield to the event loop to process other I/O events for other Channels. If ChannelOptions.autoRead is false no further read attempt will be made until ChannelHandlerContext.read or Channel.read is explicitly called.
func channelReadComplete(context: ChannelHandlerContext)
Parameters
context-
The
ChannelHandlerContextwhich thisChannelHandlerbelongs to.
Discussion
This should call context.fireChannelReadComplete to forward the operation to the next _ChannelInboundHandler in the ChannelPipeline if you want to allow the next handler to also handle the event.