a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove logging and use different relay service

+1 -29
+1 -29
appview/index.ts
··· 1 - const https = require("https"); 2 - 3 - const originalRequest = https.request; 4 - 5 - https.request = function (options: any, callback: any) { 6 - console.log( 7 - "→", 8 - options.method || "GET", 9 - typeof options === "string" 10 - ? options 11 - : `${options.host}${options.path || "/"}`, 12 - ); 13 - 14 - const req = originalRequest.call(this, options, callback); 15 - 16 - req.on("response", (res) => { 17 - console.log( 18 - "←", 19 - res.statusCode, 20 - res.statusMessage, 21 - JSON.stringify(res.body || "No body"), 22 - ); 23 - }); 24 - 25 - return req; 26 - }; 27 - 28 1 import { createClient } from "@supabase/supabase-js"; 29 2 import { Database, Json } from "supabase/database.types"; 30 3 import { IdResolver } from "@atproto/identity"; ··· 259 232 const runner = new MemoryRunner({ 260 233 startCursor, 261 234 setCursor: async (cursor) => { 262 - console.log(cursor); 263 235 await writeFile(cursorFile, cursor.toString()); 264 236 // persist cursor 265 237 }, 266 238 }); 267 239 let firehose = new Firehose({ 268 - service: "wss://bsky.network", 240 + service: "wss://relay1.us-west.bsky.network", 269 241 subscriptionReconnectDelay: 3000, 270 242 excludeAccount: true, 271 243 excludeIdentity: true,