ReferenceScripting APIWebComponentsend
WebComponent.send
methodSends something to its page (a web project's: its motion.on("message")).
| Name | send |
|---|---|
| Kind | method of WebComponent |
| Called as | webComponent.send(…) |
| Since | 0.3 |
Syntax
send(data: unknown): voidParameters
| Name | Type | Description |
|---|---|---|
data | unknown | Anything JSON can hold |
Returns
Nothing.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.