@genesislcap/foundation-fdc3 14.408.0 → 14.409.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -75
- package/package.json +14 -14
- package/docs/api/foundation-fdc3.appchannellistenerconfig.channelname.md +0 -14
- package/docs/api/foundation-fdc3.appchannellistenerconfig.md +0 -62
- package/docs/api/foundation-fdc3.fdc3.addchannellistener.md +0 -86
- package/docs/api/foundation-fdc3.fdc3.addintentlisteners.md +0 -54
- package/docs/api/foundation-fdc3.fdc3.addsystemchannellistener.md +0 -70
- package/docs/api/foundation-fdc3.fdc3.broadcastonchannel.md +0 -86
- package/docs/api/foundation-fdc3.fdc3.broadcastonchanneleventhandler.md +0 -70
- package/docs/api/foundation-fdc3.fdc3.broadcastoncurrentchannel.md +0 -70
- package/docs/api/foundation-fdc3.fdc3.currentchannel_.md +0 -13
- package/docs/api/foundation-fdc3.fdc3.findintent.md +0 -72
- package/docs/api/foundation-fdc3.fdc3.findintentsbycontext.md +0 -56
- package/docs/api/foundation-fdc3.fdc3.getcurrentchannel.md +0 -17
- package/docs/api/foundation-fdc3.fdc3.getorcreatechannel.md +0 -56
- package/docs/api/foundation-fdc3.fdc3.handlechannelcurrentcontext.md +0 -86
- package/docs/api/foundation-fdc3.fdc3.isinteropfdc3.md +0 -13
- package/docs/api/foundation-fdc3.fdc3.isready.md +0 -13
- package/docs/api/foundation-fdc3.fdc3.isready_.md +0 -13
- package/docs/api/foundation-fdc3.fdc3.joinchannel.md +0 -56
- package/docs/api/foundation-fdc3.fdc3.md +0 -284
- package/docs/api/foundation-fdc3.fdc3.raiseintent.md +0 -72
- package/docs/api/foundation-fdc3.fdc3.raiseintentforcontext.md +0 -56
- package/docs/api/foundation-fdc3.fdc3appintent.md +0 -18
- package/docs/api/foundation-fdc3.fdc3channel.md +0 -18
- package/docs/api/foundation-fdc3.fdc3context.md +0 -18
- package/docs/api/foundation-fdc3.fdc3contexthandler.md +0 -16
- package/docs/api/foundation-fdc3.fdc3contextlistener.config.md +0 -14
- package/docs/api/foundation-fdc3.fdc3contextlistener.md +0 -62
- package/docs/api/foundation-fdc3.fdc3intentlistener.fdc3.md +0 -14
- package/docs/api/foundation-fdc3.fdc3intentlistener.intentconfig.md +0 -14
- package/docs/api/foundation-fdc3.fdc3intentlistener.md +0 -81
- package/docs/api/foundation-fdc3.fdc3intentresolution.md +0 -18
- package/docs/api/foundation-fdc3.fdc3intents.md +0 -16
- package/docs/api/foundation-fdc3.fdc3raiseintent.eventname.md +0 -14
- package/docs/api/foundation-fdc3.fdc3raiseintent.fdc3.md +0 -14
- package/docs/api/foundation-fdc3.fdc3raiseintent.intentname.md +0 -14
- package/docs/api/foundation-fdc3.fdc3raiseintent.intenttype.md +0 -14
- package/docs/api/foundation-fdc3.fdc3raiseintent.mappingfunction.md +0 -14
- package/docs/api/foundation-fdc3.fdc3raiseintent.md +0 -138
- package/docs/api/foundation-fdc3.fdc3systemchannellistener.config.md +0 -14
- package/docs/api/foundation-fdc3.fdc3systemchannellistener.fdc3.md +0 -14
- package/docs/api/foundation-fdc3.fdc3systemchannellistener.md +0 -81
- package/docs/api/foundation-fdc3.intentconfig.callback.md +0 -14
- package/docs/api/foundation-fdc3.intentconfig.intent.md +0 -14
- package/docs/api/foundation-fdc3.intentconfig.md +0 -80
- package/docs/api/foundation-fdc3.interopfoundationnotificationlistener.md +0 -66
- package/docs/api/foundation-fdc3.interopnotificationslistener.ioconnectnotificationoptions.md +0 -11
- package/docs/api/foundation-fdc3.interopnotificationslistener.md +0 -93
- package/docs/api/foundation-fdc3.interopnotificationslistener.shownotificationtoast.md +0 -50
- package/docs/api/foundation-fdc3.logger.md +0 -13
- package/docs/api/foundation-fdc3.md +0 -254
- package/docs/api/foundation-fdc3.systemchannellistenerconfig.callback.md +0 -14
- package/docs/api/foundation-fdc3.systemchannellistenerconfig.channeltype.md +0 -14
- package/docs/api/foundation-fdc3.systemchannellistenerconfig.md +0 -80
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -281
package/README.md
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @genesislcap/foundation-fdc3
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Documentation for this package is published on the Genesis docs site:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
For more detailed information on API and configurations, please refer to the [API documentation](docs/api/index.md) in the `docs/api` directory.
|
|
5
|
+
**Docs: [Foundation FDC3](https://docs.genesis.global/docs/develop/client-capabilities/desktop-interoperability/foundation-fdc3/)**
|
|
8
6
|
|
|
9
7
|
## Installation
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
Add the package to your `package.json` dependencies. After changing dependencies, run `npm run bootstrap` (or your project's equivalent). See [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) for more information.
|
|
12
10
|
|
|
13
11
|
```json
|
|
14
12
|
{
|
|
@@ -18,78 +16,10 @@ To include `@genesislcap/foundation-fdc3` in your project, add it as a dependenc
|
|
|
18
16
|
}
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
## Key Features
|
|
22
|
-
|
|
23
|
-
- **FDC3 Standard Compliance:** Implements FDC3 API standards, ensuring compatibility and interoperability across financial desktop applications.
|
|
24
|
-
- **Event and Context Management:** Supports handling and broadcasting of various event types and contexts, enabling rich interaction patterns between applications.
|
|
25
|
-
- **Channel Support:** Offers utilities for channel management, allowing applications to join, create, or broadcast over specific channels for targeted communication.
|
|
26
|
-
- **Intent Handling:** Provides mechanisms to raise, listen for, and handle intents, facilitating action-driven communication between applications.
|
|
27
|
-
|
|
28
|
-
## Usage Examples
|
|
29
|
-
|
|
30
|
-
### Adding Intent Listeners
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
import { FDC3, FDC3Intents, FDC3ContextHandler } from '@genesislcap/foundation-fdc3';
|
|
34
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
35
|
-
|
|
36
|
-
export class MyComponent extends FASTElement {
|
|
37
|
-
@FDC3 fdc3Service: FDC3;
|
|
38
|
-
|
|
39
|
-
connectedCallback() {
|
|
40
|
-
const listeners = new Map<FDC3Intents, FDC3ContextHandler>([
|
|
41
|
-
[FDC3Intents.controlClicked, (context) => console.log('Control clicked', context)],
|
|
42
|
-
[FDC3Intents.routeChanged, (context) => console.log('Route changed', context)],
|
|
43
|
-
]);
|
|
44
|
-
|
|
45
|
-
this.fdc3Service.addIntentListeners(listeners);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Raising an Intent
|
|
51
|
-
|
|
52
|
-
```typescript
|
|
53
|
-
import { FDC3, FDC3Intents } from '@genesislcap/foundation-fdc3';
|
|
54
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
55
|
-
|
|
56
|
-
export class MyComponent extends FASTElement{
|
|
57
|
-
@FDC3 fdc3Service: FDC3;
|
|
58
|
-
|
|
59
|
-
onClick() {
|
|
60
|
-
this.fdc3Service.raiseIntent({ type: 'ViewChart', symbol: 'AAPL' }, FDC3Intents.controlClicked);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Joining a Channel
|
|
66
|
-
|
|
67
|
-
```typescript
|
|
68
|
-
import { FDC3 } from '@genesislcap/foundation-fdc3';
|
|
69
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
70
|
-
|
|
71
|
-
export class MyComponent extends FASTElement {
|
|
72
|
-
@FDC3 fdc3Service: FDC3;
|
|
73
|
-
|
|
74
|
-
connectedCallback() {
|
|
75
|
-
this.fdc3Service.joinChannel('blue');
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Best Practices
|
|
81
|
-
|
|
82
|
-
- **Intent and Context Definition:** Clearly define the intents and contexts your application will use or listen for, ensuring they align with FDC3 standards and facilitate meaningful interactions between applications.
|
|
83
|
-
- **Error Handling:** Implement robust error handling for intent raising and context sharing operations, especially when dealing with asynchronous actions.
|
|
84
|
-
- **Channel Usage:** When using channels for communication, ensure proper management of channel membership and context broadcasting to avoid unintended interactions.
|
|
85
|
-
|
|
86
|
-
## Dependency Injection and Service Configuration
|
|
87
|
-
|
|
88
|
-
The FDC3 service is designed to be easily integrated and configured within your application using dependency injection. This approach allows for flexible instantiation and usage of the FDC3 API, ensuring that financial desktop applications can leverage standard communication protocols for enhanced interoperability.
|
|
89
|
-
|
|
90
19
|
## License
|
|
91
20
|
|
|
92
21
|
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
93
22
|
|
|
94
23
|
### Licensed components
|
|
24
|
+
|
|
95
25
|
Genesis low-code platform
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-fdc3",
|
|
3
3
|
"description": "Genesis Foundation FDC3",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.409.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -61,22 +61,22 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@genesislcap/foundation-testing": "14.
|
|
65
|
-
"@genesislcap/genx": "14.
|
|
66
|
-
"@genesislcap/rollup-builder": "14.
|
|
67
|
-
"@genesislcap/ts-builder": "14.
|
|
68
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
69
|
-
"@genesislcap/vite-builder": "14.
|
|
70
|
-
"@genesislcap/webpack-builder": "14.
|
|
64
|
+
"@genesislcap/foundation-testing": "14.409.0",
|
|
65
|
+
"@genesislcap/genx": "14.409.0",
|
|
66
|
+
"@genesislcap/rollup-builder": "14.409.0",
|
|
67
|
+
"@genesislcap/ts-builder": "14.409.0",
|
|
68
|
+
"@genesislcap/uvu-playwright-builder": "14.409.0",
|
|
69
|
+
"@genesislcap/vite-builder": "14.409.0",
|
|
70
|
+
"@genesislcap/webpack-builder": "14.409.0",
|
|
71
71
|
"sinon": "^17.0.1"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@finos/fdc3": "2.1.1",
|
|
75
|
-
"@genesislcap/foundation-logger": "14.
|
|
76
|
-
"@genesislcap/foundation-notifications": "14.
|
|
77
|
-
"@genesislcap/foundation-ui": "14.
|
|
78
|
-
"@genesislcap/foundation-utils": "14.
|
|
79
|
-
"@genesislcap/web-core": "14.
|
|
75
|
+
"@genesislcap/foundation-logger": "14.409.0",
|
|
76
|
+
"@genesislcap/foundation-notifications": "14.409.0",
|
|
77
|
+
"@genesislcap/foundation-ui": "14.409.0",
|
|
78
|
+
"@genesislcap/foundation-utils": "14.409.0",
|
|
79
|
+
"@genesislcap/web-core": "14.409.0",
|
|
80
80
|
"@interopio/desktop": "^6.3.1",
|
|
81
81
|
"@microsoft/fast-element": "1.14.0",
|
|
82
82
|
"@microsoft/fast-foundation": "2.50.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "cbe0459d170f27c35a7de18cec415947aedf4da5"
|
|
94
94
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [AppChannelListenerConfig](./foundation-fdc3.appchannellistenerconfig.md) > [channelName](./foundation-fdc3.appchannellistenerconfig.channelname.md)
|
|
4
|
-
|
|
5
|
-
## AppChannelListenerConfig.channelName property
|
|
6
|
-
|
|
7
|
-
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
**Signature:**
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
channelName: string;
|
|
14
|
-
```
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [AppChannelListenerConfig](./foundation-fdc3.appchannellistenerconfig.md)
|
|
4
|
-
|
|
5
|
-
## AppChannelListenerConfig interface
|
|
6
|
-
|
|
7
|
-
> This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
fdc3-context-listener listen channel config
|
|
11
|
-
|
|
12
|
-
**Signature:**
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
export interface AppChannelListenerConfig extends SystemChannelListenerConfig
|
|
16
|
-
```
|
|
17
|
-
**Extends:** [SystemChannelListenerConfig](./foundation-fdc3.systemchannellistenerconfig.md)
|
|
18
|
-
|
|
19
|
-
## Properties
|
|
20
|
-
|
|
21
|
-
<table><thead><tr><th>
|
|
22
|
-
|
|
23
|
-
Property
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Modifiers
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th><th>
|
|
32
|
-
|
|
33
|
-
Type
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</th><th>
|
|
37
|
-
|
|
38
|
-
Description
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</th></tr></thead>
|
|
42
|
-
<tbody><tr><td>
|
|
43
|
-
|
|
44
|
-
[channelName](./foundation-fdc3.appchannellistenerconfig.channelname.md)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</td><td>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</td><td>
|
|
51
|
-
|
|
52
|
-
string
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</td><td>
|
|
56
|
-
|
|
57
|
-
**_(ALPHA)_**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</td></tr>
|
|
61
|
-
</tbody></table>
|
|
62
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3](./foundation-fdc3.fdc3.md) > [addChannelListener](./foundation-fdc3.fdc3.addchannellistener.md)
|
|
4
|
-
|
|
5
|
-
## FDC3.addChannelListener() method
|
|
6
|
-
|
|
7
|
-
Helper function to add a context listener on a channel with a handler for channel messages
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
addChannelListener(channelName: string, channelType: string, callback: (any: any) => void): Promise<Channel>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
channelName
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
string
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
name of the channel
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
channelType
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
string
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
type of the channel
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
<tr><td>
|
|
66
|
-
|
|
67
|
-
callback
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</td><td>
|
|
71
|
-
|
|
72
|
-
(any: any) => void
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</td><td>
|
|
76
|
-
|
|
77
|
-
handler to for the channel context listener
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</td></tr>
|
|
81
|
-
</tbody></table>
|
|
82
|
-
|
|
83
|
-
**Returns:**
|
|
84
|
-
|
|
85
|
-
Promise<Channel>
|
|
86
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3](./foundation-fdc3.fdc3.md) > [addIntentListeners](./foundation-fdc3.fdc3.addintentlisteners.md)
|
|
4
|
-
|
|
5
|
-
## FDC3.addIntentListeners() method
|
|
6
|
-
|
|
7
|
-
Adds intent listeners for the specified intents.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
listeners
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
Map<[FDC3Intents](./foundation-fdc3.fdc3intents.md)<!-- -->, [FDC3ContextHandler](./foundation-fdc3.fdc3contexthandler.md)<!-- -->>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The intent listeners to add.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
void
|
|
54
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3](./foundation-fdc3.fdc3.md) > [addSystemChannelListener](./foundation-fdc3.fdc3.addsystemchannellistener.md)
|
|
4
|
-
|
|
5
|
-
## FDC3.addSystemChannelListener() method
|
|
6
|
-
|
|
7
|
-
Helper function to add a context listener on to the system, aka 'color', channel with a handler for channel messages
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
addSystemChannelListener(channelType: string, callback: (any: any) => void): Promise<void>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
channelType
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
string
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
type of the channel
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
callback
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
(any: any) => void
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
handler to for the channel context listener
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
Promise<void>
|
|
70
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3](./foundation-fdc3.fdc3.md) > [broadcastOnChannel](./foundation-fdc3.fdc3.broadcastonchannel.md)
|
|
4
|
-
|
|
5
|
-
## FDC3.broadcastOnChannel() method
|
|
6
|
-
|
|
7
|
-
Broadcasts a message on a given channel with a given type
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
channelName
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
string
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
name of the channel
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
type
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
string
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
type of the channel
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
<tr><td>
|
|
66
|
-
|
|
67
|
-
payload
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</td><td>
|
|
71
|
-
|
|
72
|
-
any
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</td><td>
|
|
76
|
-
|
|
77
|
-
payload sent to the channel
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</td></tr>
|
|
81
|
-
</tbody></table>
|
|
82
|
-
|
|
83
|
-
**Returns:**
|
|
84
|
-
|
|
85
|
-
Promise<void>
|
|
86
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3](./foundation-fdc3.fdc3.md) > [broadcastOnChannelEventHandler](./foundation-fdc3.fdc3.broadcastonchanneleventhandler.md)
|
|
4
|
-
|
|
5
|
-
## FDC3.broadcastOnChannelEventHandler() method
|
|
6
|
-
|
|
7
|
-
Helper function to broadcast message on channel in response to dispatched event
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
channelName
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
string
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
name of the channel
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
type
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
string
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
type of the channel
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
Promise<(e: any) => Promise<void>>
|
|
70
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3](./foundation-fdc3.fdc3.md) > [broadcastOnCurrentChannel](./foundation-fdc3.fdc3.broadcastoncurrentchannel.md)
|
|
4
|
-
|
|
5
|
-
## FDC3.broadcastOnCurrentChannel() method
|
|
6
|
-
|
|
7
|
-
Broadcasts a message on the current app channel
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
payload
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
any
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
payload sent to the channel
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
type
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
string
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
_(Optional)_ type of the channel
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
Promise<void>
|
|
70
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3](./foundation-fdc3.fdc3.md) > [currentChannel$](./foundation-fdc3.fdc3.currentchannel_.md)
|
|
4
|
-
|
|
5
|
-
## FDC3.currentChannel$ property
|
|
6
|
-
|
|
7
|
-
Observable which emits the current channel When a new channel is joined a new value is emitted
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
currentChannel$: Observable<FDC3Channel>;
|
|
13
|
-
```
|