added socket event to listen to job market post #643
@@ -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]);
|
||||
|
||||
|
||||
@@ -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])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user