Skip to content

Commit 892b3c4

Browse files
committed
use jetstream2 in examples
seems to be more stable
1 parent 67f915c commit 892b3c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Alternatively, you can connect to a [Jetstream](https://github.com/bluesky-socia
8080
Jetstream connections are made using a `Skyfall::Jetstream` instance, which has more or less the same API as `Skyfall::Firehose`, so it should be possible to switch between those by just changing the line that creates the client instance:
8181

8282
```rb
83-
sky = Skyfall::Jetstream.new('jetstream1.us-east.bsky.network')
83+
sky = Skyfall::Jetstream.new('jetstream2.us-east.bsky.network')
8484

8585
sky.on_message { |msg| ... }
8686
sky.on_error { |e| ... }
@@ -113,7 +113,7 @@ Jetstream has a similar mechanism, except the cursor is the event's timestamp in
113113
```rb
114114
cursor = load_cursor
115115

116-
sky = Skyfall::Jetstream.new('jetstream1.us-east.bsky.network', { cursor: cursor })
116+
sky = Skyfall::Jetstream.new('jetstream2.us-east.bsky.network', { cursor: cursor })
117117
sky.on_message do |msg|
118118
save_cursor(msg.seq)
119119
process_message(msg)
@@ -283,7 +283,7 @@ Jetstream allows you to specify [filters](https://github.com/bluesky-social/jets
283283
To use these filters, pass the "wantedCollections" and/or "wantedDids" parameters in the options hash when initializing `Skyfall::Jetstream`. You can use the original JavaScript param names, or a more Ruby-like snake_case form:
284284

285285
```rb
286-
sky = Skyfall::Jetstream.new('jetstream1.us-east.bsky.network', {
286+
sky = Skyfall::Jetstream.new('jetstream2.us-east.bsky.network', {
287287
wanted_collections: 'app.bsky.feed.post',
288288
wanted_dids: @dids
289289
})
@@ -292,7 +292,7 @@ sky = Skyfall::Jetstream.new('jetstream1.us-east.bsky.network', {
292292
For collections, you can also use the symbol codes used in `Operation#type`, e.g. `:bsky_post`:
293293

294294
```rb
295-
sky = Skyfall::Jetstream.new('jetstream1.us-east.bsky.network', {
295+
sky = Skyfall::Jetstream.new('jetstream2.us-east.bsky.network', {
296296
wanted_collections: [:bsky_post]
297297
})
298298
```

example/jet_monitor_phrases.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
end
1919

2020
# tell Jetstream to send us only post records
21-
sky = Skyfall::Jetstream.new('jetstream1.us-east.bsky.network', { wanted_collections: [:bsky_post] })
21+
sky = Skyfall::Jetstream.new('jetstream2.us-east.bsky.network', { wanted_collections: [:bsky_post] })
2222

2323
sky.on_message do |msg|
2424
# we're only interested in repo commit messages

0 commit comments

Comments
 (0)