this repo has no description

feat: switch to public Jetstream

Changed files
+3 -5
cmd
bsky-langs
bsky-users
+1 -1
bsky-activity.py
···
])
async def bsky_activity():
-
relay_url = 'ws://localhost:6008/subscribe'
+
relay_url = 'wss://jetstream1.us-west.bsky.network/subscribe'
sys.stdout.write(f'opening websocket connection to {relay_url}\n')
sys.stdout.flush()
+1 -1
cmd/bsky-langs/main.go
···
"github.com/gorilla/websocket"
)
-
const JetstreamUrl = `ws://localhost:6008/subscribe?wantedCollections=app.bsky.feed.post`
+
const JetstreamUrl = `wss://jetstream1.us-west.bsky.network/subscribe?wantedCollections=app.bsky.feed.post`
func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
+1 -3
cmd/bsky-users/main.go
···
"chat.bsky.actor.declaration": true,
}
-
// const JetstreamUrl = `wss://jetstream1.us-west.bsky.network/subscribe`
-
-
const JetstreamUrl = `ws://localhost:6008/subscribe` // TODO(ejd): attach a reconnect cursor
+
const JetstreamUrl = `wss://jetstream1.us-west.bsky.network/subscribe` // TODO(ejd): attach a reconnect cursor
const userTimestampUpdate = `insert into users (did, ts) values (?, ?) on conflict (did) do update set ts = ?`