crossws
crossws copied to clipboard
feat: publish without peer
๐ 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.