crossws icon indicating copy to clipboard operation
crossws copied to clipboard

feat: publish without peer

Open CS-Birb opened this issue 10 months ago โ€ข 0 comments

๐Ÿ”— Linked issue

resolves #29

โ“ Type of change

  • [x] ๐Ÿ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • [ ] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [ ] ๐Ÿ‘Œ Enhancement (improving an existing functionality like performance)
  • [x] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

Provides means for the crossws adapters that support pub/sub (bun, node and uws) to publish to a topic without holding onto a Peer. This will help support messages being initiated from other server contexts - rather than just in response to a Peer.

Open to input on alternative approaches - I expect this might not be quite at the desired quality just yet.

Not clear how this proposed feature would best integrate into downstream packages like h3 or Nitro. Open to any discussion!

๐Ÿ“ Checklist

  • [x] I have linked an issue or discussion.
  • [x] I have updated the documentation accordingly.

CS-Birb avatar Apr 17 '24 09:04 CS-Birb