WebSocketProtocolErrorHandler
A simple ChannelHandler
that catches protocol errors emitted by the WebSocketFrameDecoder
and automatically generates protocol error responses.
final class WebSocketProtocolErrorHandler
This ChannelHandler
provides default error handling for basic errors in the WebSocket protocol, and can be used by users when custom behaviour is not required.
Citizens in NIOWebSocket
Conformances
protocol ChannelHandler
Base protocol for handlers that handle I/O events or intercept an I/O operation.
protocol ChannelInboundHandler
ChannelHandler
which handles inbound I/O events for aChannel
.
Show implementation details (2)
Hide implementation details
protocol _ChannelInboundHandler
Untyped
ChannelHandler
which handles inbound I/O events.protocol _EmittingChannelHandler
ChannelHandler which will emit data by calling
ChannelHandlerContext.write
.
Typealiases
Type members
Instance members
Instance features
func channelActive(context: ChannelHandlerContext
) func channelInactive(context: ChannelHandlerContext
) func channelRead(context: ChannelHandlerContext, data: NIOAny
) func channelReadComplete(context: ChannelHandlerContext
) func channelRegistered(context: ChannelHandlerContext
) func channelUnregistered(context: ChannelHandlerContext
) func channelWritabilityChanged(context: ChannelHandlerContext
) func handlerAdded(context: ChannelHandlerContext
) Do nothing by default.
func handlerRemoved(context: ChannelHandlerContext
) Do nothing by default.
func unwrapInboundIn(NIOAny
) -> InboundIn func userInboundEventTriggered(context: ChannelHandlerContext, event: Any
) func wrapInboundOut(InboundOut
) -> NIOAny func wrapOutboundOut(OutboundOut
) -> NIOAny