MarshalX / atproto

The AT Protocol (🦋 Bluesky) SDK for Python 🐍

Home Page:https://atproto.blue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for event stream

lokxii opened this issue · comments

The specs says that one can upgrade and HTTP connection to a websocket connection to receive event streams. However I can't find any examples / reference usage of such feature. Are there any plans for this SDK to support upgrading HTTP connection to websocket?

This only subscribes to the global firehose. I am interpreting from that article that we can subscribe to events from a repo or from a list.

You can filter events by repo. And this will be stream by specific repo :)

How about custom feeds?

I mean I thought I can websocket connect to a feed created by someone to listen to events. So I am imagining I can somehow connect to wss://(that endpoint to get feed posts)

@lokxii ah no. this is not how custom feed works :( the only way is to pull posts from custom feed using rest client https://docs.bsky.app/docs/tutorials/custom-feeds#viewing-a-feed-generators-posts

Ohhh thx for your reply! I guess I will just spam get requests to keep getting posts.