-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi! First of all, thanks for this nice lib :) I have a question: what happens, when you call an event and there are no listeners on its slot? It would be useful to describe that in the readme.
From what I tested, the promise returned by the event call just waits indefinitely. Is this your designed behavior, so a listener can still connect while the message is awaiting on the channel? If so, a nice feature would be to add an "instant delivery" mode, configured e.g. in an optional params object to the slot<Type>() function, where the call would fail (and reject the promise) if there are no connected listeners on that slot.
Metadata
Metadata
Assignees
Labels
No labels