Fixed bug that was losing messages when reconnecting.
Testing get history from server.