public static void addWebsocketHeaders(Request.Builder builder,String host)
{
builder
.addHeader(
"Sec-Websocket-Protocol"
,
"pbbp"
)
.addHeader(
"Upgrade"
,
"websocket"
)
.addHeader(
"Connection"
,
"Upgrade"
)
.addHeader(
"Sec-WebSocket-Key"
,
"J4axdrB5EVmab8YnJ4z3bw=="
)
.addHeader(
"Sec-WebSocket-Version"
,
"13"
)
.addHeader(
"Accept-Encoding"
,
"gzip"
)
.addHeader(
"host"
,host)
.addHeader(
"User-Agent"
,
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Cronet Mobile/15E148 Safari/605.1"
);
}