Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Introduce a listener for JSON events #832
The first use case is when a client sends a message and may want to limit the size of the message being sent.
It may be interesting to emit an event for the incoming JSON (on both client and server) before it is converted to a message object.
On server side another event may be emitted when the message is frozen, so that applications will be able to e.g. log the message length in bytes.