Library Moduleswift-nio 2.74.0NIOWebSocket
NIOWebSocket
import NIOWebSocket
Module information
- Declarations
- 128
- Symbols
- 242
Uncategorized
Types
class NIOTypedWebSocketClientUpgrader<UpgradeResult>
A
NIOTypedHTTPClientProtocolUpgrader
that knows how to do the WebSocket upgrade dance.class NIOTypedWebSocketServerUpgrader<UpgradeResult>
A
NIOTypedHTTPServerProtocolUpgrader
that knows how to do the WebSocket upgrade dance.class NIOWebSocketClientUpgrader
A
HTTPClientProtocolUpgrader
that knows how to do the WebSocket upgrade dance.enum NIOWebSocketError
Errors thrown by the NIO websocket module.
class NIOWebSocketFrameAggregator
NIOWebSocketFrameAggregator
buffers inbound fragmentedWebSocketFrame
’s and aggregates them into a singleWebSocketFrame
. It guarantees that aWebSocketFrame
with anopcode
of.continuation
is never forwarded. Frames which are not fragmented are just forwarded without any processing. Fragmented frames are unmasked, concatenated and forwarded as a newWebSocketFrame
which is either a.binary
or.text
frame.extensionData
,rsv1
,rsv2
andrsv3
are lost if a frame is fragmented because they cannot be concatenated.class NIOWebSocketServerUpgrader
A
HTTPServerProtocolUpgrader
that knows how to do the WebSocket upgrade dance.struct NIOWebSocketUpgradeError
Errors that can be thrown by
NIOWebSocket
during protocol upgrade.enum WebSocketErrorCode
An enum that represents websocket error codes.
struct WebSocketFrame
A structured representation of a single WebSocket frame.
class WebSocketFrameDecoder
An inbound
ChannelHandler
that deserializes websocket frames into a structured format for further processing.class WebSocketFrameEncoder
An inbound
ChannelHandler
that serializes structured websocket frames into a byte stream for sending on the network.struct WebSocketMaskingKey
A single 4-byte websocket masking key.
struct WebSocketOpcode
An operation code for a websocket frame.
class WebSocketProtocolErrorHandler
A simple
ChannelHandler
that catches protocol errors emitted by theWebSocketFrameDecoder
and automatically generates protocol error responses.
Typealiases
Show obsolete interfaces (2)
Hide obsolete interfaces
Other modules
CNIOAtomics
CNIODarwin
CNIOLLHTTP
CNIOLinux
CNIOSHA1
CNIOWASI
CNIOWindows
NIO
Event-driven, non-blocking, network application framework for high performance protocol servers & clients.
NIOConcurrencyHelpers
NIOCore
The core abstractions that make up SwiftNIO.
NIOEmbedded
NIOFileSystem
NIOFoundationCompat
NIOHTTP1
NIOPosix
NIOTLS
NIOTestUtils
_NIOBase64
_NIOConcurrency
_NIODataStructures
_NIOFileSystem
A file system library for Swift.
_NIOFileSystemFoundationCompat