messages are sent following a protocol (defined in config.js)