packages/client/lib/event/publish.js
async function publish(props) {
	const message = getData(props)
	return createClient()
		.post('/publish/', {
			json: true,
			body: message
		})
}
async function publish(props) {
	const message = getData(props)
	return createClient()
		.post('/publish/', {
			json: true,
			body: message
		})
}
async function publish ( props ) { const message = getData ( props ) return createClient ( ) . post ( '/publish/' , { json : true , body : message } ) }
publish an event
@param {object} props
@param {string} [props.recipient]
@param {string} [props.topic]
@param {object} [props.data]
@param {string} [props.filepath]
@returns {Promise}
publish an event