overwolf.web

Use the overwolf.web API to open a local HTTP web-server.

Methods

createServer(port, callback)

Version added: 0.93.1

Creates a web server. This call returns an object with two fields: A status string and a server object. The server object is of type overwolf.web.webserver.
  • Parameter: port <int>

    The port to use.

  • Parameter: callback <function>

Callback argument:
{
    "status": "success",
    "server": {
        "onRequest": {}
    }
}