MOAT js is a server side javascript running on MOAT IoT runtime environment.

API Document

MOAT js API is described at the following page. 

Local testing environment

You can run MOAT js code on your local machine for testing purpose.
  1. Install Node.js
  2. Install npm
  3. Install moatjs-stub module with npm
    npm install moat
See this page for detail.

Limitations

  1. The size of a single js file shall be limited. The max size differs depending on respective runtime environment.
  2. The size of outgoing communication data at once shall be limited. The max size is also different per each runtime environment.
Note that the limitation above will be changed in the future.