The jcs:open() function returns a connection handle that can be used to execute multiple RPCs using the jcs:execute() function and close the connection using the jcs:close() function.
The syntax is as follows:
var $connection = jcs:open([$server])
Where:
If connecting to a local device, use the following syntax:
$connection = jcs:open()
If connecting to a remote device, use the following syntax:
$connection = jcs:open(remote-router)