# RealtimeSessionInit
Source: https://docs.maelstrom-ai.co/dev/reference/react-realtime/interfaces/realtimesessioninit/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: [packages/react-realtime/src/lib/maelstrom-realtime.ts:47](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/react-realtime/src/lib/maelstrom-realtime.ts#L47)

What a session the extension builds is for: the Maelstrom session and the voice provider. Passed to [MaelstromRealtimeBaseOptions.createAdapter](https://docs.maelstrom-ai.co/dev/reference/react-realtime/interfaces/maelstromrealtimebaseoptions/#createadapter) and to the `opening` option.

## Extended by

-   [`RealtimeSessionContext`](https://docs.maelstrom-ai.co/dev/reference/react-realtime/interfaces/realtimesessioncontext/)

## Type Parameters

### Provider

`Provider` = `undefined`

## Properties

### provider

> `readonly` **provider**: `Provider`

Defined in: [packages/react-realtime/src/lib/maelstrom-realtime.ts:58](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/react-realtime/src/lib/maelstrom-realtime.ts#L58)

Voice provider this session is built for: the initial provider, or the one chosen through [UseVoiceResult.switchProvider](https://docs.maelstrom-ai.co/dev/reference/react-realtime/interfaces/usevoiceresult/#switchprovider). `undefined` when the extension declares no provider.

* * *

### sessionId

> `readonly` **sessionId**: `SessionId`

Defined in: [packages/react-realtime/src/lib/maelstrom-realtime.ts:52](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/react-realtime/src/lib/maelstrom-realtime.ts#L52)

Maelstrom session identifier, used to scope provider-side resources. It stays the same across provider switches and remounts.
