mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: Unfortunately as a result of #108 the WebSocketFrameDecoder can emit a WebSocketFrame more than once if the user closes the connection in channelRead, or any other callback while decode() is on the call stack. This is obviously less than ideal, as it can allow multiple delivery of frames. Modifications: Given WebSocketFrameDecoder a no-op implementation of decodeLast. Result: No multi-delivery of frames.