/* eslint-disable @typescript-eslint/no-explicit-any */ import axios from 'axios'; const publishUrl = 'http://127.0.0.1:8071/publish'; const channel = 'SevenCLI.Print'; const sevenLocalPubSubService = { sendSocketMessage : (payload: unknown): void => { axios.post(publishUrl,payload).then(function (response: any) { if(response.status!==200){ console.log(`An error ocurred while publishing on channel ${channel}` , { status: response.status, statusText: response.statusText }); } }).catch(function(err:any){ console.log(`An error ocurred while publishing on channel ${channel}` , err); }); }, }; export default sevenLocalPubSubService;