tangled
alpha
login
or
join now
edavis.dev
/
bsky-tools
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
feat: switch to public Jetstream
Eric Davis
1 year ago
c6f9ce4f
c86169eb
+3
-5
3 changed files
expand all
collapse all
unified
split
bsky-activity.py
cmd
bsky-langs
main.go
bsky-users
main.go
+1
-1
bsky-activity.py
···
35
35
])
36
36
37
37
async def bsky_activity():
38
38
-
relay_url = 'ws://localhost:6008/subscribe'
38
38
+
relay_url = 'wss://jetstream1.us-west.bsky.network/subscribe'
39
39
40
40
sys.stdout.write(f'opening websocket connection to {relay_url}\n')
41
41
sys.stdout.flush()
+1
-1
cmd/bsky-langs/main.go
···
10
10
"github.com/gorilla/websocket"
11
11
)
12
12
13
13
-
const JetstreamUrl = `ws://localhost:6008/subscribe?wantedCollections=app.bsky.feed.post`
13
13
+
const JetstreamUrl = `wss://jetstream1.us-west.bsky.network/subscribe?wantedCollections=app.bsky.feed.post`
14
14
15
15
func main() {
16
16
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
+1
-3
cmd/bsky-users/main.go
···
39
39
"chat.bsky.actor.declaration": true,
40
40
}
41
41
42
42
-
// const JetstreamUrl = `wss://jetstream1.us-west.bsky.network/subscribe`
43
43
-
44
44
-
const JetstreamUrl = `ws://localhost:6008/subscribe` // TODO(ejd): attach a reconnect cursor
42
42
+
const JetstreamUrl = `wss://jetstream1.us-west.bsky.network/subscribe` // TODO(ejd): attach a reconnect cursor
45
43
46
44
const userTimestampUpdate = `insert into users (did, ts) values (?, ?) on conflict (did) do update set ts = ?`
47
45