# WebSessionConnectionsMixin

Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the [developer guide](https://jbrowse.org/jb2/docs/developer_guide/) for concepts. Built into JBrowse core. [View source](https://github.com/GMOD/jbrowse-components/blob/main/packages/web-core/src/SessionConnections.ts).

Adds connections that a user creates to a web session, kept in the session
beside the connections the config declares.

Each section ends with the members a composed model contributes, linked to the page that documents them.

## Properties

| Member | Description |
| --- | --- |
| **sessionConnections**<br><code>sessionConnections: types.stripDefault( types.array(pluginManager.pluggableConfigSchemaType('connection')), [], )</code> |  |

2 inherited properties from one model:

From [ConnectionManagementSessionMixin](../connectionmanagementsessionmixin): [`connectionInstances`](../connectionmanagementsessionmixin#property-connectioninstances), [`connectionTrackConfigs`](../connectionmanagementsessionmixin#property-connectiontrackconfigs)


## Getters

| Member | Description |
| --- | --- |
| **connections**<br><code>(ConfigNodeProps&lt;…&gt; &amp; ConfigNodeActions &amp; ConfigNodeBrand&lt;ConfigurationSchemaType&lt;{ readonly name: { type: "string"; } &amp; { defaultValue: string; }; readonly assemblyNames: { type: "stringArray"; } &amp; { defaultValue: unknown; }; connectionId: { type: "string"; } &amp; { defaultValue: string; }; type: { type: "string"; } &amp; { defaultValue: string; }; }, ConfigurationSchemaOptions&lt;undefined, "connectionId", true, ConfigurationSchemaRequirement&lt;Partial&lt;Record&lt;string, string[]&gt;&gt;, string&gt;, any&gt;&gt;&gt;)[]</code> | list of config connections and session connections |

## Actions

| Member | Description |
| --- | --- |
| **addSessionConnectionConf**<br><code>(connectionConf: AnyConfiguration) =&gt; PluggableConfigNode &amp; IStateTreeNode&lt;PluggableConfigSchemaType&gt;</code> | Add a connection config to *this session*: it lands in `sessionConnections`, travels with the session when it is saved or shared, and never reaches the config.json the server hands every visitor. Idempotent on `connectionId`.<br><br>This is the one to call when the connection belongs to the session being built — a `&hubURL=` link, a session spec's `sessionConnections` — no matter who is looking. `addConnectionConf` below is the one whose destination depends on that. |
| **addConnectionConf**<br><code>(connectionConf: AnyConfiguration) =&gt; any</code> | Add a connection config wherever *this user's* edits belong: an admin's into the shared config (`jbrowse.connections`, which the admin server writes back into config.json for every visitor), everyone else's into the session. Two destinations behind one name, so call it only where that really is the intent — the "Open connection..." dialog, where an admin adding a hub means to add it for the whole site. Anything that means one destination should say which: `addSessionConnectionConf` above for the session, `jbrowse.addConnectionConf` for the config. |
| **deleteConnection**<br><code>(configuration: AnyConfigurationModel) =&gt; any</code> |  |

9 inherited actions from one model:

From [ConnectionManagementSessionMixin](../connectionmanagementsessionmixin): [`makeConnection`](../connectionmanagementsessionmixin#action-makeconnection), [`breakConnection`](../connectionmanagementsessionmixin#action-breakconnection), [`teardownConnection`](../connectionmanagementsessionmixin#action-teardownconnection), [`clearConnections`](../connectionmanagementsessionmixin#action-clearconnections), [`captureConnectionTrack`](../connectionmanagementsessionmixin#action-captureconnectiontrack), [`updateConnectionTrackConfig`](../connectionmanagementsessionmixin#action-updateconnectiontrackconfig), [`setConnectionTrackConfig`](../connectionmanagementsessionmixin#action-setconnectiontrackconfig), [`pruneConnectionTrackConfig`](../connectionmanagementsessionmixin#action-pruneconnectiontrackconfig), [`hydrateConnection`](../connectionmanagementsessionmixin#action-hydrateconnection)


