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:
Shekhar Rajak authored and GitHub committed 2020-03-04 16:22:06 +00:00
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
}
}