connected = true;
listeners.forEach(listener -> listener.onConnected());
}
+ if (!"message".equals(name)) {
+ // Ignore silently all events which are not "message" events. This includes the "alive" events.
+ return;
+ }
try {
RemoteopenhabEvent event = jsonParser.fromJson(data, RemoteopenhabEvent.class);
- if ("ALIVE".equals(event.type)) {
- // ignore ALIVE message
- return;
- }
- if (!"message".equals(name)) {
- logger.debug("Received unhandled event with name '{}' and data '{}'", name, data);
- return;
- }
String itemName;
String thingUID;
RemoteopenhabEventPayload payload;