<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XPlugin](./x-components.xplugin.md) &gt; [(constructor)](./x-components.xplugin._constructor_.md)

## XPlugin.(constructor)

Creates a new instance of the XPlugin with the given bus passed as parameter.

**Signature:**

```typescript
constructor(bus: XBus<XEventsTypes, WireMetadata>);
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

bus


</td><td>

[XBus](./x-components.xbus.md)<!-- -->&lt;[XEventsTypes](./x-components.xeventstypes.md)<!-- -->, [WireMetadata](./x-components.wiremetadata.md)<!-- -->&gt;


</td><td>

The XBus implementation to use for the plugin.


</td></tr>
</tbody></table>

