HTTP Manager - JpEncausse/SARAH-Documentation GitHub Wiki

The official documentation has been moved to http://wiki.sarah.encausse.net/

.
.
.
.
.
.
.
.
The C# client start an HTTP Server to handle remote commands. This server should only be called by NodeJS.

HTTP Client

All HTTP Request are processed by HTTP Manager.

  • The manager ignore concurent call
  • Response text is vocalized

Plugins MUST call callback({}) to avoid request hang until timout

Clean URL

Request URL http://127.0.0.1:8080 is replaced by custom.ini property. All plugin MUST use this address to be correctly overrided.

Configuration

; NodeJS server address
server=127.0.0.1

; NodeJS server port
port=8080

HTTP Server

Configuration

The client start 2 HTTP server on port 8888

custom.ini

; Local HTTP server port
loopback=8888

Commands

The list of all available HTTP Parameters are available in the JavaScript API (SARAH Singleton) page. Some convenient NodeJS functions perform the request. Otherwise use SARAH.remote().