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

***

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

# Function: createWorkerSession()

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

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

## Parameters

### canvas

`HTMLCanvasElement`

### options?

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

## Returns

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