def headers_from_client(client):
    """Builds headers to send with WebSocket requests from a HTTP client."""
    return [
        (b"origin", b"..."),
        (b"cookie", client.cookies.output(header="", sep="; ").encode()),
    ]