Install this plugin like any other DoDWAN plugin: unzip the plugin ZIP archive in the $DODWAN_HOME/plugins
directory.
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
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)
dodwan_plugins=dodwan-napi,dodwan-napi-ws jvm_opts="-Ddodwan_napi_ws.port=80 -Ddodwan_napi_ws.serial_method=bson" dodwan.sh start