title: Socket IO 3.0, Don't receive emit on server
body: <p>Back Config</p>
  <pre><code>import express from &quot;express&quot;;
  import SocketIO from &quot;socket.io&quot;;
  import http from &quot;http&quot;;
  import cors from &quot;cors&quot;;
  
  const app = express();
  app.use(cors());
  const server = http.createServer(app);
  const io = SocketIO(server);
  
  const PORT = 5000;
  
  io.on(&quot;connection&quot;, (socket) =&gt; {
    console.log(&quot;Connected!!&quot;);
  
    socket.on(&quot;send_message&quot;, (data) =&gt; {
      console.log('SEND_MESSAGE');
      console.log(data);
    });
  
    socket.on(&quot;disconnect&quot;, () =&gt; {
      console.log(&quot;Close.-.--.&quot;);
    });
  });
  
  server.listen(PORT, () =&gt; {
    console.log(`Server on port =&gt; ${PORT}`);
  });
  
  </code></pre>
  <p>Front Implementation</p>
  <pre><code>import io from &quot;socket.io-client&quot;;
  
  let socket;
  
  const Home = () =&gt; {
    useEffect(() =&gt; {
      socket = io(&quot;localhost:5000&quot;, {
        // transports: [&quot;websocket&quot;],
        // upgrade: false,
      });
  
      return () =&gt; socket.disconnect();
    }, []);
  
  
    const onEnter = () =&gt; {
      socket.emit(&quot;send_message&quot;, { message: messageToSend });
      setMessageToSend(&quot;&quot;);
    };
  
  
  </code></pre>
  <p>I receive the Connect and Disconnect emit's but i cant get the send_message emit, HELP! :c, i saw a few videos and courses can't get the result i want, don't judge me, im new with socket io</p>