Instance Methodswift-nio 2.72.0NIOWebSocket->NIOCore
webSocketUnmask(_:indexOffset:)
Applies the WebSocket unmasking operation.
WebSocketFrameDecoder.swift:47mutating func webSocketUnmask(_ maskingKey: WebSocketMaskingKey, indexOffset: Int = 0)
Parameters
- maskingKey
The masking key.
Other members in extension
Instance members
func getWebSocketErrorCode(at: Int
) -> WebSocketErrorCode? Get a websocket error code from a byte buffer.
func readWebSocketErrorCode(
) -> WebSocketErrorCode? Read a websocket error code from a byte buffer.
func webSocketMask(WebSocketMaskingKey, indexOffset: Int
) Applies the websocket masking operation.
func write(webSocketErrorCode: WebSocketErrorCode
) Write the given error code to the buffer.