Instance Methodswift-nio 2.72.0NIOWebSocket->NIOCore
readWebSocketErrorCode
Read a websocket error code from a byte buffer.
WebSocketErrorCodes.swift:134mutating func readWebSocketErrorCode() -> WebSocketErrorCode?
Returns
The error code, or nil
if there were not enough readable bytes.
This method increments the reader index.
Other members in extension
Instance members
func getWebSocketErrorCode(at: Int
) -> WebSocketErrorCode? Get a websocket error code from a byte buffer.
func webSocketMask(WebSocketMaskingKey, indexOffset: Int
) Applies the websocket masking operation.
func webSocketUnmask(WebSocketMaskingKey, indexOffset: Int
) Applies the WebSocket unmasking operation.
func write(webSocketErrorCode: WebSocketErrorCode
) Write the given error code to the buffer.