Enumeration Casehummingbird-websocket 2.2.0HummingbirdWebSocket
websocket(_:_:_:)
WebSocketChannel.swift:32case websocket(NIOAsyncChannel<WebSocketFrame, WebSocketFrame>, WebSocketChannelHandler, Logger)
case websocket(NIOAsyncChannel<WebSocketFrame, WebSocketFrame>, WebSocketChannelHandler, Logger)
s20HummingbirdWebSocket05HTTP1bC14UpgradeChannelV0E6ResultO9websocketyAE7NIOCore08NIOAsyncF0Vy06NIOWebC00bC5FrameVALG_yAM_7Logging6LoggerVtYaYbcAPtcAEmF
What are these?9YXGX
import HummingbirdWebSocket
enum UpgradeResult
Upgrade result (either a websocket AsyncChannel, or an HTTP1 AsyncChannel)
struct HTTP1WebSocketUpgradeChannel
Child channel supporting a web socket upgrade from HTTP1
struct NIOAsyncChannel<Inbound, Outbound> where Inbound : Sendable, Outbound : Sendable
Wraps a NIO Channel
object into a form suitable for use in Swift Concurrency.
struct WebSocketFrame
A structured representation of a single WebSocket frame.
typealias WebSocketChannelHandler = (NIOAsyncChannel<WebSocketFrame, WebSocketFrame>, Logger) async -> Void
struct Logger
A Logger
is the central type in SwiftLog
. Its central function is to emit log messages using one of the methods corresponding to a log level.
case notUpgraded(NIOAsyncChannel<HTTPRequestPart, HTTPResponsePart>)
case failedUpgrade(NIOAsyncChannel<HTTPRequestPart, HTTPResponsePart>, Logger)