UBConnection

UnityBase client. Internally contain instance of http and provide useful methods for work with UnityBase server.

    var UBConnection = require('UBConnection');
    var conn = new UBConnection({host: 'localhost', port: '888', path: 'autotest', keepAlive: true});
    // alternative way is:
    // var conn = new UBConnection('http://localhost:888/orm');
    // but in this case keepAlive is false
    conn.onRequestAuthParams = function(){ return {authSchema: 'UB', login: 'admin', password: 'admin'} }
    conn.get('getDomainInfo');

Classes

UBConnection

Members

appInfo inner

Deprecated:
  • Do not use this property doe to memory overuse - see http://forum.ub.softline.kiev.ua/viewtopic.php?f=12&t=85

Methods

getDomainInfo()Object inner

Retrieve application domain information.