WebSocketProtocolErrorHandler

A simple ChannelHandler that catches protocol errors emitted by the WebSocketFrameDecoder and automatically generates protocol error responses.

WebSocketProtocolErrorHandler.swift:21
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.