View on GitHub

3dRudder-js

[WEB] : JavaScript client for the 3dRudder Controller

Download this project as a .zip file Download this project as a tar.gz file

license language Node.js

Browsers HTTP/WS HTTPS/WSS File://
Chrome
FireFox
Edge :x:
Safari :warning: :warning: :warning:

3dRudderjs v1.0.4

Installation

API Documentation on Wiki

Usage

Node.js

var Sdk3dRudder = require('3drudder-js');
// default options {host: "127.51.100.82", port: 15698, schemeWs: "wss", autoReconnect: false, autoReconnectInterval: 5000 /*ms*/};
var SDK = new Sdk3dRudder(); 
or
// with options
var opts = {host: "127.0.0.0", port: 1234, schemeWs: "ws", autoReconnect: true, autoReconnectInterval: 1000 /*1 sec*/};
var SDK = new Sdk3dRudder(opts);

SDK.init();
var rudder = SDK.controllers[0];
var x = rudder.axis.roll;
...

Browser

Include in html page<script src="../dist/3dRudder-x.x.x.js"></script>

var SDK = new Sdk3dRudder();
SDK.init();
var rudder = SDK.controllers[0];
var x = rudder.axis.roll;
...

See examples

Build for browser

Unit Test

TODO features