added socket event to listen to job market post #643

Merged
ameye merged 1 commits from socket-market-refresh into master 2024-03-14 00:52:28 +00:00
2 changed files with 0 additions and 2 deletions
@@ -44,7 +44,6 @@ export default function SocketIOContextProvider({children}) {
socket.on("received_refreshmarket_jobs", (data) => {
// setSocketMsgReceived(data.message);
dispatch(tableReload({type:'MARKETTABLELIST'}))
console.log('YES ssss')
});
}, [socket]);
-1
View File
@@ -315,7 +315,6 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
useEffect(()=>{ // sends an event to the socket to enable user join a room to be able to receive update when jobs enters the market
joinRoom('full-markets-jobs')
console.log('joined oooooooooooooooooooooooooooooooooooooooooooooooooooooooo')
},[isLogin.status])