Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 692 Bytes

postevent.adoc

File metadata and controls

30 lines (25 loc) · 692 Bytes

PostEvent()

PostEvent(node, event, tag, ...) => Boolean

Post event on behalf of given node.

Table 1. Parameters

node

[class-node]

Node object to send event on behalf of.

event

Integer or String

Event code or name.

tag

String

User tag associated with event. Optional, can be leaved out or set to null.

…​

String

0 or more event-specific parameters.

Return

TRUE if event was posted successfully or FALSE if not.

Example
PostEvent($node, 100000);
PostEvent($node, 100000, "my tag", "param1", "param2");
PostEvent($node, "MY_EVENT_NAME", null, "param1");