I currently have an action file called send.action containing this:
export const sendString = (payload, config, callback, usingWebsocket, hideMessage = false)