Skip to content

Don't use WebSockets on watchOS#334

Merged
simolus3 merged 1 commit intomainfrom
watchos-no-ws
Mar 17, 2026
Merged

Don't use WebSockets on watchOS#334
simolus3 merged 1 commit intomainfrom
watchos-no-ws

Conversation

@simolus3
Copy link
Copy Markdown
Contributor

watchOS does not allow apps to open WebSocket connections (powersync-ja/powersync-swift#120), so we should attempt to.

Of course, this is now a workaround for a workaround since the only reason we've started using WebSockets to begin with was that NSURLSession tasks don't properly support suspend() and resume() calls, but it is what it is. This should give us reliable backpressure on iOS, macOS and tvOS. And on watchOS, at least this restores connectivity 🤷

@simolus3 simolus3 requested a review from stevensJourney March 16, 2026 15:49
@simolus3 simolus3 merged commit f03e918 into main Mar 17, 2026
15 checks passed
@simolus3 simolus3 deleted the watchos-no-ws branch March 17, 2026 08:08
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.

2 participants