Refactor to send last 10 messages to newly connected clients