start
Description
Allows you to start the linkage protocol manually with the HOST. This method is available when the autoStart parameter is set to false during JsRO initialization.
Syntax
JsRO.start();
Parameters
None.
Return Value
None.
Remarks
Use this method when you need to control when the connection to the HOST is established. This is useful when you need to perform setup operations before initiating communication with the server.
When autoStart is set to true (the default), the linkage protocol starts automatically upon JsRO instantiation, and calling start() is not necessary.
Example
// Create JsRO with manual start
var JsRO = new Thinfinity.JsRO({
autoStart: false
});
// Perform setup operations
console.log('Preparing application...');
// Set up event handlers before connecting
JsRO.on('model:Form1.button1', 'click', function(elem) {
console.log('Button clicked');
});
// Start the connection when ready
JsRO.start();
console.log('Connection initiated');