Moved reading & writing to ChatServer