Why my server example prints only Listening at the port: 3000. But it doesn’t print two words: connected and hoge after the client connection. My client send a word hoge to the server that should print it in the server/app.js here:
Hi there - are you looking under “Logs” in the Glitch editor (it’s among the tools on the bottom of the page)? That’s where your server logs would show if they’re printing out.
The server side should prints two words in the console: connected and hoge after the client connection but the server doesn’t print these messages to the Logs window:
When it happen the server send to the client the hello from server message. If you run my example from the first post and open the browser console you can see that the client takes a message from the server and prints it:
I uses SDL3 for the client that is built to WebAssembly. It is a code for connection on the client side and sending the hoge word to the server (that the server should print to the Logs window):
I don’t think that it is a problem with my example or Emscripten because I have deployed the same example on the Render hosting and it prints two words after the client connection: