Added server's messaging code