# Interface: `IRemoteJavaScriptWorkerKernel` [@jupyterlite/javascript-kernel](../modules/jupyterlite_javascript_kernel.md).IRemoteJavaScriptWorkerKernel An convenience interface for JavaScript workers wrapped by a comlink Remote. ## Hierarchy - `Remote`<[`IJavaScriptWorkerKernel`](jupyterlite_javascript_kernel.IJavaScriptWorkerKernel-1.md)\> ↳ **`IRemoteJavaScriptWorkerKernel`** ## Properties ### `[createEndpoint]` > **`[createEndpoint]`**: () => `Promise`<`MessagePort`\> #### Type declaration > (): `Promise`<`MessagePort`\> ##### Returns `Promise`<`MessagePort`\> #### Inherited from Remote.\_\_@createEndpoint@7124 #### Defined in node_modules/comlink/dist/umd/comlink.d.ts:92 ### `[releaseProxy]` > **`[releaseProxy]`**: () => `void` #### Type declaration > (): `void` ##### Returns `void` #### Inherited from Remote.\_\_@releaseProxy@7126 #### Defined in node_modules/comlink/dist/umd/comlink.d.ts:93 ## Methods ### `commClose` > **`commClose`**(`...args`): `Promise`<`void`\> #### Parameters | Name | Type | | :-------- | :--------------------------------------------------------- | | `...args` | [content: ICommCloseMsg<"iopub" \| "shell"\>, parent: any] | #### Returns `Promise`<`void`\> #### Inherited from Remote.commClose #### Defined in packages/kernel/lib/tokens.d.ts:137 ### `commInfo` > **`commInfo`**(`...args`): `Promise`<`IReplyErrorContent`\> \| > `Promise`<`IReplyAbortContent`\> \| `Promise`<`ICommInfoReply`\> #### Parameters | Name | Type | | :-------- | :----------------------------- | | `...args` | [content: Object, parent: any] | #### Returns `Promise`<`IReplyErrorContent`\> \| `Promise`<`IReplyAbortContent`\> \| `Promise`<`ICommInfoReply`\> #### Inherited from Remote.commInfo #### Defined in packages/kernel/lib/tokens.d.ts:134 ### `commMsg` > **`commMsg`**(`...args`): `Promise`<`void`\> #### Parameters | Name | Type | | :-------- | :------------------------------------------------------- | | `...args` | [content: ICommMsgMsg<"iopub" \| "shell"\>, parent: any] | #### Returns `Promise`<`void`\> #### Inherited from Remote.commMsg #### Defined in packages/kernel/lib/tokens.d.ts:136 ### `commOpen` > **`commOpen`**(`...args`): `Promise`<`void`\> #### Parameters | Name | Type | | :-------- | :-------------------------------------------------------- | | `...args` | [content: ICommOpenMsg<"iopub" \| "shell"\>, parent: any] | #### Returns `Promise`<`void`\> #### Inherited from Remote.commOpen #### Defined in packages/kernel/lib/tokens.d.ts:135 ### `complete` > **`complete`**(`...args`): `Promise`<`IReplyErrorContent`\> \| > `Promise`<`IReplyAbortContent`\> \| `Promise`<`ICompleteReply`\> #### Parameters | Name | Type | | :-------- | :----------------------------- | | `...args` | [content: Object, parent: any] | #### Returns `Promise`<`IReplyErrorContent`\> \| `Promise`<`IReplyAbortContent`\> \| `Promise`<`ICompleteReply`\> #### Inherited from Remote.complete #### Defined in packages/kernel/lib/tokens.d.ts:131 ### `execute` > **`execute`**(`...args`): `Promise`<`IReplyErrorContent` & `IExecuteCount`\> \| > `Promise`<`IReplyAbortContent` & `IExecuteCount`\> \| `Promise`<`IExecuteReply` & > `IExecuteCount`\> #### Parameters | Name | Type | | :-------- | :----------------------------- | | `...args` | [content: Object, parent: any] | #### Returns `Promise`<`IReplyErrorContent` & `IExecuteCount`\> \| `Promise`<`IReplyAbortContent` & `IExecuteCount`\> \| `Promise`<`IExecuteReply` & `IExecuteCount`\> #### Inherited from Remote.execute #### Defined in packages/kernel/lib/tokens.d.ts:130 ### `initialize` > **`initialize`**(`...args`): `Promise`<`void`\> Handle any lazy initialization activities. #### Parameters | Name | Type | | :-------- | :------------------ | | `...args` | [options: IOptions] | #### Returns `Promise`<`void`\> #### Inherited from Remote.initialize #### Defined in [packages/javascript-kernel/src/tokens.ts:19](https://github.com/jupyterlite/jupyterlite/blob/7971e0aa/packages/javascript-kernel/src/tokens.ts#L19) ### `inputReply` > **`inputReply`**(`...args`): `Promise`<`void`\> #### Parameters | Name | Type | | :-------- | :------------------------------------------------- | | `...args` | [content: ReplyContent, parent: any] | #### Returns `Promise`<`void`\> #### Inherited from Remote.inputReply #### Defined in packages/kernel/lib/tokens.d.ts:138 ### `inspect` > **`inspect`**(`...args`): `Promise`<`IReplyErrorContent`\> \| > `Promise`<`IReplyAbortContent`\> \| `Promise`<`IInspectReply`\> #### Parameters | Name | Type | | :-------- | :----------------------------- | | `...args` | [content: Object, parent: any] | #### Returns `Promise`<`IReplyErrorContent`\> \| `Promise`<`IReplyAbortContent`\> \| `Promise`<`IInspectReply`\> #### Inherited from Remote.inspect #### Defined in packages/kernel/lib/tokens.d.ts:132 ### `isComplete` > **`isComplete`**(`...args`): `Promise`<`IReplyErrorContent`\> \| > `Promise`<`IReplyAbortContent`\> \| `Promise`<`IIsCompleteReplyIncomplete`\> \| > `Promise`<`IIsCompleteReplyOther`\> #### Parameters | Name | Type | | :-------- | :----------------------------- | | `...args` | [content: Object, parent: any] | #### Returns `Promise`<`IReplyErrorContent`\> \| `Promise`<`IReplyAbortContent`\> \| `Promise`<`IIsCompleteReplyIncomplete`\> \| `Promise`<`IIsCompleteReplyOther`\> #### Inherited from Remote.isComplete #### Defined in packages/kernel/lib/tokens.d.ts:133