[android-components](../../../index.md) / [mozilla.components.browser.engine.gecko.webextension](../../index.md) / [GeckoWebExtension](../index.md) / [PortId](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`PortId(name: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, session: `[`EngineSession`](../../../mozilla.components.concept.engine/-engine-session/index.md)`? = null)`

Uniquely identifies a port using its name and the session it
was opened for. Ports connected from background scripts will
have a null session.

