We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b101bdd commit f908f23Copy full SHA for f908f23
README.md
@@ -35,7 +35,12 @@ public class MQTTClientDemo {
35
SimpleMQTTClient sc = new SimpleMQTTClient("localhost", "test-bot");
36
37
// Subscribe to a channel and register a callback for it
38
- sc.subscribe("myChannel", message -> System.out.println(message));
+ sc.subscribe("myChannel", new MessageListener() {
39
+ @Override
40
+ public void processMessage(String message) {
41
+ System.out.println(message);
42
+ }
43
+ });
44
45
// Do something...
46
0 commit comments