printHeader;
print JSON_BIND->new->allow_blessed->convert_blessed->encode({
'registers' => $cts->getRegisters,
- 'properties' => $cts->getProperties
+ 'properties' => $cts->getProperties,
+ 'server' => {'port' => $ENV{'SERVER_PORT'}}
});
} elsif ($query =~ /^(format|read),([\w\d_,]+)$/) {
print(commandDump($cts, $mode));
}
-
1;
initialize: function(defs) {
this.defs = defs;
- this.monitorPrefix = 'monitor-' + window.location.port + '/';
+ this.monitorPrefix = 'monitor-' + this.defs.server.port + '/';
this.renderTriggerChannels();
this.renderTriggerInputs();