randomRequestKey

    Generates a random WebSocket Request Key by generating 16 bytes randomly using the SystemRandomNumberGenerator and encoding them as a base64 string as defined in RFC6455 https://tools.ietf.org/html/rfc6455#section-4.1.

    NIOWebSocketClientUpgrader.swift:157
    static func randomRequestKey() -> String

    Returns

    base64 encoded request key

    Other members in extension

    Type members

    Instance members