Description Usage Arguments Details Value
Build an A-Frame Event Message
1 |
id |
the id of the entity that will have the event emitted on it. |
event_name |
the name of the event. |
event_detail |
data associated with the event. |
bubbles |
TRUE if the event should bubble up to parents of the entity with 'id'? |
Construct an A-Frame event to be sent to a scene in browser, using a websocket connection. When the event is received by a scene with an active websocket server, it will be routed to the entity specified by 'id'. To handle the event the entity needs to have components that attach appropriate event handlers.
An object that represents an A-Frame event.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.