---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk-igaming/first-frame/interfaces/FirstFrameWindow.md
---
[Reference](../../../../index.md) / [@getenginex/sdk-igaming/first-frame](../index.md) / FirstFrameWindow

# FirstFrameWindow

Page window, with the minimum the helper uses: a DOM `Window` is assignable. It is the app's window
(the one that receives the iframe's messages), not the iframe's.

## Methods

### addEventListener()

> **addEventListener**(`type`, `listener`): `void`

Registers the `message` listener.

#### Parameters

##### type

`"message"`

##### listener

(`event`) => `void`

#### Returns

`void`

***

### removeEventListener()

> **removeEventListener**(`type`, `listener`): `void`

Removes the `message` listener.

#### Parameters

##### type

`"message"`

##### listener

(`event`) => `void`

#### Returns

`void`
