I'm currently working on a script that utilizes PubSub, but I'm running into an issue where the background function doesn't seem to display any output in the shell. I'm following the example from the website:
var myTicker = function(msg, data) {
print("Event: " + msg + "\n");
};
PubSub.subscribe("ticker.10", myTicker);
For some reason, I can't get the myTicker function
to output anything when triggered. It seems like the print
statements aren't being executed as expected.
Has anyone encountered this before, or does anyone have suggestions on what might be causing this issue?
Thanks in advance!