Store latestMessage
Add factory for connection
Use helper to know if there is some error