Sending Events
  • 19 Jul 2024
  • 1 Minute to read
  • Contributors
  • PDF

Sending Events

  • PDF

Article summary

Sending Events

You can generate and send your own events from your custom nodes.
For sending an event just call raiseEvent() with an event you have prepared.

var eventInformation = new EventInformation(
				channelIndex, 
				"accuweather", 
				"weather", 
				outData,
				eventInformation.StartSampleIndex, 
				eventInformation.EndSampleIndex,
                ""
			)
raiseEvent(eventInformation);

EventInformation

var EventInformation = function (
    ChannelIndex,
    ServiceName,
    EventName,
    Data,
    StartSampleIndex,
    EndSampleIndex,
    GroupId)

Properties:

nameexplanation
ChannelIndexthe channel number for this event.
ServiceNamethe name of the service. You can use your node name as the service name.
EventNamethe name of this event
Dataany additional data in json format
StartSampleIndexstart sample index of the audio this event corresponds to. This index is relative to the beginning of the session
EndSampleIndexstart sample index of the audio this event corresponds to. This index is relative to the beginning of the session
GroupIdgroupId for this event

See here for more info about Data Flow events.


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.