Tutorial: fdc3.joinChannel

fdc3.joinChannel

Join all connections at the given identity (or just one if endpointId provided) to channel contextGroupId. If no target is specified, it adds the sender to the channel.

This is a wrapper for interop.joinContextGroup.

Example

await fdc3.joinChannel('red');
await fdc3.addContextListener('instrument', console.log);
await fdc3.broadcast({type: 'instrument', id: { ticker: 'AAPL' }});