We don't have to handle the error case here. 
The default implementation closes the connection in case of an error
Add a simple chat example