mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
ChannelHandler: provide static (un)wrap(In|Out)bound(In|Out) (#2791)
This commit is contained in:
1 parent
223b0e8eac
commit
7948ed2104
72 files changed
+369
-343
No files matched your search
@@ -43,7 +43,7 @@ private final class SynchronousCloser: ChannelInboundHandler {
|
||||
private var closeFrame: WebSocketFrame?
|
||||
|
||||
func channelRead(context: ChannelHandlerContext, data: NIOAny) {
|
||||
let frame = self.unwrapInboundIn(data)
|
||||
let frame = Self.unwrapInboundIn(data)
|
||||
guard case .connectionClose = frame.opcode else {
|
||||
context.fireChannelRead(data)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user