Skip to content

Conversation

@NeedleInAJayStack
Copy link
Member

@NeedleInAJayStack NeedleInAJayStack commented Feb 11, 2026

  • Server propagates the result of the onInit to downstream onExecute and onSubscribe, allowing better handling of auth computations
  • Changes Messenger to be "send-only" and introduces Server and Client listen functions to listen to incoming async sequences. This detangles the memory management and simplifies the Messenger type.
  • Server and Client become actors and are sendable
  • Changes tests from XCTest to Swift Testing
  • Updates readme

This automatically propagates the init payload result from the callback into the `onExecute` and `onSubscribe` closures. Since the init callback is usually used to determine authentication and authorization, this should be usable from our execution and subscription calls, and lifecycle is most easily managed within this package
To support receiving messages, we added `listen` functions to server and client. This resolves the confusing ownership rules by avoiding `onReceive` callbacks in Messenger.
Client and Server became actors to ensure sendability, and Messenger was marked sendable
@NeedleInAJayStack NeedleInAJayStack merged commit 6d62d9f into main Feb 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant