Answer the question
In order to leave comments, you need to log in
How to get all events coming from the server using socket.io?
Please tell me if it is possible on the client side to log all events coming from the server.
Perhaps something like:
socket.on('*', function(event, data) {
console.log('Event received: ' + event + ' - data:' + JSON.stringify(data));
});
Answer the question
In order to leave comments, you need to log in
Understood
In the console, we write the following and update the page:
To receive only incoming messages, then insert another code into the console and also update the page:localStorage.debug = 'socket.io-client:socket';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question