Installing the Dodwan Websocket Network API plugin

Install this plugin like any other DoDWAN plugin: unzip the plugin ZIP archive in the $DODWAN_HOME/plugins directory.

Running the Dodwan Websocket Network API plugin

This plugin depends on the generic plugin DoDWAN Network API (Napi), that should be already installed.

When launching DoDWAN, you should put in the shell variable dodwan_plugins the short name of the Dodwan Network API plugin, followed by the short name of the Dodwan Websocket Network API plugin:

dodwan_plugins=dodwan-napi,dodwan-napi-ws  dodwan.sh start

Configuration

The following configuration Java properties can be specified (on the dodwan.sh start command line, use the jvm_opts shell variable containing a list of -D options):

dodwan_napi_ws.port : the port on which the websocket server listens (default: 8125)

dodwan_napi_ws.serial_method : the serialization method applied to PDUs : bson or json (default: json)

dodwan_napi_ws.conn_timeout : the connection timeout in seconds (-1 for no timeout, default 50s)

Example

dodwan_plugins=dodwan-napi,dodwan-napi-ws  jvm_opts="-Ddodwan_napi_ws.port=80 -Ddodwan_napi_ws.serial_method=bson" dodwan.sh start