Server now can clear ids and get messages