How to intercept and print publish messages? #0.15 #683
-
How to intercept publish message and print them in the console? I attached the piece of code that I wrote and the error that I got. Also I appreciate it if anybody could provide me with the documentation of Moquette (http://andsel.github.io/moquette/ not available!). The code:
The error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The answer is right there in the stacktrace. And in the javadoc of the method you're calling.
Have you tried using one of the |
Beta Was this translation helpful? Give feedback.
The answer is right there in the stacktrace. And in the javadoc of the method you're calling.
Have you tried using one of the
toString()
methods ofByteBuf
if you want to turn the buffer into a String?