...
Info |
---|
title | Engine Compatibility |
---|
|
This library has not been completely ported to the Node pico engine. However, it supports attr() , attrs , and a different form of send() . Scheduled event functions and actions are now part of the schedule library.
send is asynchronous, supports attrs values of any type, and accepts an optional second parameter namedhost :
Code Block |
---|
language | javascript |
---|
theme | Confluence |
---|
| event:send({"eci":"cj3btnlyj0001y6idgl4api8f", "domain":"test", "type":"test", "attrs":{}})
event:send({"eci":"cj3btnlyj0001y6idgl4api8f", "eid":"test", "domain":"test", "type":"test"}, null)
event:send({"eci":"cj3btnlyj0001y6idgl4api8f", "eid":"test", "domain":"test", "type":"test"}, "http://localhost")
event:send({"eci":"cj3btnlyj0001y6idgl4api8f", "eid":"none", "domain":"test", "type":"test"}, host="https://localhost:8080") |
If the eid is omitted (null) or "none" ,"null" , or "" , it will default to a random uuid. |
The event
library provides access to event properties, a function for getting attribute values, and an action for sending events.
...