Method
channelRead(context:data:)
Called when some data has been read from the remote peer.
func channelRead(context: ChannelHandlerContext, data: NIOAny)
Parameters
context-
The
ChannelHandlerContextwhich thisChannelHandlerbelongs to. data-
The data read from the remote peer, wrapped in a
NIOAny.
Discussion
This should call context.fireChannelRead to forward the operation to the next _ChannelInboundHandler in the ChannelPipeline if you want to allow the next handler to also handle the event.