[**ruviz**](../../README.md)

***

[ruviz](../../README.md) / [index](../README.md) / createCanvasSession

# Function: createCanvasSession()

> **createCanvasSession**(`canvas`, `options?`): `Promise`\<[`CanvasSession`](../classes/CanvasSession.md)\>

Defined in: [index.ts:1887](https://github.com/Ameyanagi/ruviz/blob/91f8e7b36952093ba0bf232fc1ad623212329596/packages/ruviz-web/src/index.ts#L1887)

## Parameters

### canvas

`HTMLCanvasElement`

### options?

[`CanvasSessionOptions`](../../shared/interfaces/CanvasSessionOptions.md)

## Returns

`Promise`\<[`CanvasSession`](../classes/CanvasSession.md)\>
