[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/script-host](https://jsprismarine.dev/api/@jsprismarine/script-host/index.md) / debugger/channel

# debugger/channel

## Classes

- [DebuggerChannelBridge](https://jsprismarine.dev/api/@jsprismarine/script-host/debugger/channel/classes/DebuggerChannelBridge.md)
- [PortDebuggerChannel](https://jsprismarine.dev/api/@jsprismarine/script-host/debugger/channel/classes/PortDebuggerChannel.md)

## Interfaces

### DebuggerChannelEndpoint

Defined in: [script-host/src/debugger/channel.ts:37](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L37)

What the engine's thread needs to build its end; it crosses to a worker in `postMessage`'s transfer list.

#### Properties

##### port

> `readonly` **port**: `MessagePort`

Defined in: [script-host/src/debugger/channel.ts:38](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L38)

##### signal

> `readonly` **signal**: `SharedArrayBuffer`

Defined in: [script-host/src/debugger/channel.ts:39](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L39)

***

### DebuggerConnection

Defined in: [script-host/src/debugger/channel.ts:29](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L29)

A connection to the extension that a bridge can join to, such as a `DebuggerSocket`.

#### Methods

##### close()

> **close**(): `void`

Defined in: [script-host/src/debugger/channel.ts:33](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L33)

###### Returns

`void`

##### onClose()

> **onClose**(`listener`): `void`

Defined in: [script-host/src/debugger/channel.ts:31](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L31)

###### Parameters

###### listener

() => `void`

###### Returns

`void`

##### onMessage()

> **onMessage**(`listener`): `void`

Defined in: [script-host/src/debugger/channel.ts:30](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L30)

###### Parameters

###### listener

(`message`) => `void`

###### Returns

`void`

##### send()

> **send**(`message`): `void`

Defined in: [script-host/src/debugger/channel.ts:32](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/debugger/channel.ts#L32)

###### Parameters

###### message

`unknown`

###### Returns

`void`
