xstoka
13 years agoNew Contributor
Is it possible to Send a message outside of onMessage?
I have a custom component that performs some actions and then passes a URL to a Web Page runner to test a webpage. Currently the message is handled via the onMessage handler in my custom component...
Is it possible to send a message outside of the onMessage handler? For example my Custom component runs off a fixed rate generator sending a URL request each second. I also have a button on my custom component that i can click which will send 1 extra URL request (e.g http://www.yahoo.co.uk) on each click.
onMessage = { incoming, outgoing, message ->
message['URL'] = "www.google.com";
send( output, message);
}
Is it possible to send a message outside of the onMessage handler? For example my Custom component runs off a fixed rate generator sending a URL request each second. I also have a button on my custom component that i can click which will send 1 extra URL request (e.g http://www.yahoo.co.uk) on each click.
