Required Instance Propertyswift-websocket 1.1.0WSCore
name
Extension name
var name: String { get }
Extension name
var name: String { get }
import WSCore
protocol WebSocketExtension : Sendable
Protocol for WebSocket extension
@frozen struct String
A Unicode string value that is a collection of characters.
func processFrameToSend(_ frame: WebSocketFrame, context: WebSocketExtensionContext) async throws -> WebSocketFrame
Process frame about to be sent to websocket
func processReceivedFrame(_ frame: WebSocketFrame, context: WebSocketExtensionContext) async throws -> WebSocketFrame
Process frame received from websocket
func shutdown() async
shutdown extension