Skip to content

@pumpkin-plugins/port-mapping API / upnp / parseDescription

Function: parseDescription() ​

parseDescription(xml, location, responder?): ControlPoint[]

Defined in: tools/port-mapping/src/upnp.ts:71

Finds the WAN connection services in a device description.

Parameters ​

xml ​

string

The description document.

location ​

string

The URL it was fetched from, for resolving relative control URLs.

responder? ​

Ipv4

The SSDP responder's address. Defaults to the host in location.

Returns ​

ControlPoint[]

pumpkin-plugins documentation