In general, a client needs to respond to the following events:
Event  | 
Description  | 
Server is acknowledging that a conversation is established.  | 
|
Data has arrived from the partner.  | 
|
Server is acknowledging a request (positive).  | 
|
Server is acknowledging a request (negative).  | 
|
Server is terminating.  | 
|
An error has been encountered.  |