getting there
This commit is contained in:
101
README.md
101
README.md
@@ -13,25 +13,110 @@ npx cap sync
|
||||
|
||||
<docgen-index>
|
||||
|
||||
* [`echo(...)`](#echo)
|
||||
* [`create(...)`](#create)
|
||||
* [`connect(...)`](#connect)
|
||||
* [`send(...)`](#send)
|
||||
* [`disconnect(...)`](#disconnect)
|
||||
* [`addListener('state', ...)`](#addlistenerstate-)
|
||||
* [`addListener('message', ...)`](#addlistenermessage-)
|
||||
* [Interfaces](#interfaces)
|
||||
|
||||
</docgen-index>
|
||||
|
||||
<docgen-api>
|
||||
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
|
||||
|
||||
### echo(...)
|
||||
### create(...)
|
||||
|
||||
```typescript
|
||||
echo(options: { value: string; }) => Promise<{ value: string; }>
|
||||
create(options: { id: string; host: string; port: number; useTLS?: boolean; acceptInvalidCertificates?: boolean; }) => Promise<void>
|
||||
```
|
||||
|
||||
| Param | Type |
|
||||
| ------------- | ------------------------------- |
|
||||
| **`options`** | <code>{ value: string; }</code> |
|
||||
|
||||
**Returns:** <code>Promise<{ value: string; }></code>
|
||||
| Param | Type |
|
||||
| ------------- | --------------------------------------------------------------------------------------------------------------- |
|
||||
| **`options`** | <code>{ id: string; host: string; port: number; useTLS?: boolean; acceptInvalidCertificates?: boolean; }</code> |
|
||||
|
||||
--------------------
|
||||
|
||||
|
||||
### connect(...)
|
||||
|
||||
```typescript
|
||||
connect(options: { id: string; }) => Promise<void>
|
||||
```
|
||||
|
||||
| Param | Type |
|
||||
| ------------- | ---------------------------- |
|
||||
| **`options`** | <code>{ id: string; }</code> |
|
||||
|
||||
--------------------
|
||||
|
||||
|
||||
### send(...)
|
||||
|
||||
```typescript
|
||||
send(options: { id: string; message: string; }) => Promise<void>
|
||||
```
|
||||
|
||||
| Param | Type |
|
||||
| ------------- | --------------------------------------------- |
|
||||
| **`options`** | <code>{ id: string; message: string; }</code> |
|
||||
|
||||
--------------------
|
||||
|
||||
|
||||
### disconnect(...)
|
||||
|
||||
```typescript
|
||||
disconnect(options: { id: string; }) => Promise<void>
|
||||
```
|
||||
|
||||
| Param | Type |
|
||||
| ------------- | ---------------------------- |
|
||||
| **`options`** | <code>{ id: string; }</code> |
|
||||
|
||||
--------------------
|
||||
|
||||
|
||||
### addListener('state', ...)
|
||||
|
||||
```typescript
|
||||
addListener(eventName: 'state', listenerFunc: (message: { id: string; state: string; }) => void) => Promise<PluginListenerHandle>
|
||||
```
|
||||
|
||||
| Param | Type |
|
||||
| ------------------ | ----------------------------------------------------------------- |
|
||||
| **`eventName`** | <code>'state'</code> |
|
||||
| **`listenerFunc`** | <code>(message: { id: string; state: string; }) => void</code> |
|
||||
|
||||
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
||||
|
||||
--------------------
|
||||
|
||||
|
||||
### addListener('message', ...)
|
||||
|
||||
```typescript
|
||||
addListener(eventName: 'message', listenerFunc: (message: { id: string; message: string; }) => void) => Promise<PluginListenerHandle>
|
||||
```
|
||||
|
||||
| Param | Type |
|
||||
| ------------------ | ------------------------------------------------------------------- |
|
||||
| **`eventName`** | <code>'message'</code> |
|
||||
| **`listenerFunc`** | <code>(message: { id: string; message: string; }) => void</code> |
|
||||
|
||||
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
||||
|
||||
--------------------
|
||||
|
||||
|
||||
### Interfaces
|
||||
|
||||
|
||||
#### PluginListenerHandle
|
||||
|
||||
| Prop | Type |
|
||||
| ------------ | ----------------------------------------- |
|
||||
| **`remove`** | <code>() => Promise<void></code> |
|
||||
|
||||
</docgen-api>
|
||||
|
||||
Reference in New Issue
Block a user