in dashboard-web-app/src/main/java/org/inventory/hub/event/TransactionsFIFO.java [36:48]
public void addFirst (Transaction transaction) {
if (size() > size)
removeLast();
super.addFirst(transaction);
if (webSocket != null) {
String message = "{ \"name\":\"" + transaction.toString() + "\"}";
System.out.println("Sending to /topic/reply with message = " + message);
webSocket.convertAndSend("/topic/reply", message);
}
else
System.out.println("===== Web Socket Sender is NULL (Transactions FIFO) =====");
}