WebSocketMaskingKey

public struct WebSocketMaskingKey
extension WebSocketMaskingKey: ExpressibleByArrayLiteral
extension WebSocketMaskingKey: Equatable
extension WebSocketMaskingKey: Collection

A single 4-byte websocket masking key.

WebSockets uses a masking key to prevent malicious users from injecting predictable binary sequences into websocket data streams. This structure provides a more convenient method of interacting with a masking key than simply by passing around a four-tuple.