Skip to content

Conversation

@dholms
Copy link
Collaborator

@dholms dholms commented Nov 14, 2025

Pulls the WebSocketKeepAlive code out of xrpc-server into its own package so that we can re-use it in #4290

Arguably this package should contain utilities for working with XRPC subscriptions, but I decided to hold off on moving that code over as we're actively working on refactoring lexicon/xrpc stuff more generally

Copy link
Contributor

@matthieusieben matthieusieben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite straight forward, looks good! I would maybe recommend using a less generic name (@atproto/websocket, from the name alone, could appear to be a client and/or server thing)

@@ -0,0 +1,35 @@
{
"name": "@atproto/websocket",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would call this something more specific like websocket-server or keepalive-ws-server

@@ -0,0 +1,35 @@
{
"name": "@atproto/websocket",
"version": "0.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be wrong but I think that even new packages need a changeset to be released by our ci.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(i think you have to create them manually as pnpm changeset won't pickup on new packages)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants