Update app.js
Browse files
app.js
CHANGED
|
@@ -2297,17 +2297,19 @@ class ColorifyAI {
|
|
| 2297 |
|
| 2298 |
this.ws = new WebSocket(wsUrl, {
|
| 2299 |
headers: {
|
| 2300 |
-
|
| 2301 |
-
|
| 2302 |
-
|
| 2303 |
-
|
| 2304 |
-
|
| 2305 |
-
|
| 2306 |
-
|
| 2307 |
-
|
| 2308 |
-
|
| 2309 |
-
|
| 2310 |
-
|
|
|
|
|
|
|
| 2311 |
});
|
| 2312 |
|
| 2313 |
this.ws.on("open", () => {
|
|
|
|
| 2297 |
|
| 2298 |
this.ws = new WebSocket(wsUrl, {
|
| 2299 |
headers: {
|
| 2300 |
+
"Upgrade": "websocket",
|
| 2301 |
+
"Origin": "https://colorifyai.art",
|
| 2302 |
+
"Cache-Control": "no-cache",
|
| 2303 |
+
"Accept-Language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
|
| 2304 |
+
"Pragma": "no-cache",
|
| 2305 |
+
"Connection": "Upgrade",
|
| 2306 |
+
"Sec-WebSocket-Key": crypto.randomBytes(16).toString("base64"),
|
| 2307 |
+
"User-Agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36",
|
| 2308 |
+
"Sec-WebSocket-Version": "13",
|
| 2309 |
+
"Sec-WebSocket-Extensions": "permessage-deflate; client_max_window_bits",
|
| 2310 |
+
"Accept": "application/json, text/plain, */*",
|
| 2311 |
+
"Referer": "https://colorifyai.art",
|
| 2312 |
+
}
|
| 2313 |
});
|
| 2314 |
|
| 2315 |
this.ws.on("open", () => {
|