.. (לתיקייה המכילה) | ||
What happens if the user adds 2 listeners with the same callback and then [...]? | |
Assume this won't happen (i.e., the tests won't do this.) Each listener added will use a unique callback. |
What happens to pending messages if the channel is deleted or the user leaves the channel before it has read all pending messages? | |
You can assume this won't happen. A user will have read all pending messages before leaving the channel. After a channel is deleted, the messages should still be available for reading with "fetch". |
What happens to the listeners when a user logs off? | |
You can assume that a user has removed all of its listeners before logging off. That is what the tests will do. |
Can we create a message (or several) in advance, then send it later? What happens to its creation time? | |
After a message is created, it will be immediately sent, without another API call between the MessageFactory::create call and the send call. A better API would have the send call take a MessageFactory instead of a Message, so that the creation time would be accurate. |