Genericizing protocol message-sending in 'zephjs'