mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
ByteToMessageDecoder: Default implementation for decodeLast should be provided (#1426)
* removed decodeLast function from NIOChatServer * updated decodeLast function from WebSocketFrameDecoder * default implementation of decodeLast function * removed implementation of decodeLast in WebSocketFrameDecoder
This commit is contained in:
1 parent
a5e35655e6
commit
2900f03352
3 files changed
+5
-9
No files matched your search
@@ -268,9 +268,4 @@ public final class WebSocketFrameDecoder: ByteToMessageDecoder {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func decodeLast(context: ChannelHandlerContext, buffer: inout ByteBuffer, seenEOF: Bool) throws -> DecodingState {
|
||||
// EOF is not semantic in WebSocket, so ignore this.
|
||||
return .needMoreData
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user