Forum Discussion

xstoka's avatar
xstoka
New Contributor
13 years ago

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...


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.

1 Reply

  • Hi!

    Yeah, that should work. onMessage is called everytime an incoming message arrives, but send() will always send a message.

    Good luck with your component and have a nice weekend