N
N
Nwton2017-03-20 21:47:19
JavaScript
Nwton, 2017-03-20 21:47:19

How to catch any socket emit on the client?

It is necessary to check in what form the server sends data to the client in order to clean up the excess. How to print the contents of any emit to the console?
Typically, a client receives a message like this: socket.on('msg', func)
How to do something like this:socket.on('*', func)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aves, 2017-03-20
@Nwton

https://github.com/hden/socketio-wildcard

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question