Is there a way to turn off a message debug - websocket writing 5:::that constantly appears in the console when sending a website, a chat message.
debug - websocket writing 5:::
You must set the log level in socket.io:
io.set('log level', 1);
A lower number will give you less information (with 0I think not?).
0
enable this in app.js where you have the server code
.
http://socket.io/docs/logging-and-debugging,
DEBUG=* node yourfile.js
, , "chat_server.js"
DEBUG=* node chat_server.js
Node.js :
DEBUG=* node chat_server.js ^ SyntaxError: Unexpected token *
- , '*' ?