Notifications
Notifications are not a concept unique to Streamable HTTP but can also be used in SSE. However, paired with resumability, they suddenly become very powerful. Let’s describe what they are first and then discuss how they relate to resumability.
Notifications come in many different forms to communicate that something important has happened. They are real-time updates and, for the sake of the SDK, are handled as a separate thing. That means the SDK provides a special way to listen to notifications by implementing a handler for them, as you will soon see.
Here are some scenarios where notifications make sense:
- Status updates
- Progress notifications
- Error messages
- Informational messages
For example, the final message sent from the client to the server is a notification called notifications/initialized and signals that the client and the server can exchange non-handshake messages and more normal operations such as listing...
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                