# @hyssostech/websockets-plugin

> Websockets connector to Sketch-thru-Plan services

Latest version **0.1.2** (published 2026-02-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @hyssostech/websockets-plugin
pnpm add @hyssostech/websockets-plugin
yarn add @hyssostech/websockets-plugin
bun add @hyssostech/websockets-plugin
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2026-02-11 |
| First published | 2020-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 322.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hyssos Tech |
| Maintainers | pbarthelmess |

## Links

- npm: https://www.npmjs.com/package/@hyssostech/websockets-plugin
- Repository: https://github.com/hyssostech/sketch-thru-plan-sdk-js/plugins/connectors/websockets-plugin
- npm.io page: https://npm.io/package/@hyssostech/websockets-plugin

## Recent versions

- 0.1.2 (latest) — 2026-02-11
- 0.1.0 — 2020-12-31

## README

# STP Plugin: Websockets connector

The Sketch-thru-Plan (STP) recognizer requires a connector configuration during initialization. This connection is used by the recognizer to send and receive messages/events to/from STP (see the [quickstarts](../../../quickstart/README.md)).

This plugin implements a Websockets-based connector. The STP server provides a native publish/subscribe mechanism, based on the Open Agent Architecture (OAA) framework, but other Websocket-based mechanisms could be used on the server side as well.
n
## Accessing the plugin functionality

You can get the plugin from npm:

```
npm install --save @hyssostech/websockets-plugin
```

Or you can embed directly as a script using [`jsdelivr`](https://www.jsdelivr.com/package/npm/@hyssostech/websockets-plugin). As always, it is recommended that a specific version be used rather than `@latest` to prevent breaking changes from affecting existing code

```html
<!-- Include _after_ the external services such as the Microsoft Cognitive Services Speech -->
<script src="https://cdn.jsdelivr.net/npm/@hyssostech/websockets-plugin@latest/dist/stpconnector-bundle-min.js"></script>
```

## Referencing the plugin

The plugin is built as a `UMD` library, and is therefore compatible with plain vanilla (IIFE), AMD and CommonJS. Also included is an ESM bundle (`stpconnector-bundle.esm.js`).

When used in vanilla javascript, an `StpWS` exported global can be used to access the SDK types:

```javascript
const stpConn = new StpWS.StpWebSocketsConnector("wss://server.com:port");

```
In typescript, import `@hyssostech/websockets-plugin` after installing via npm:

```javascript
import * as StpWS from "@hyssostech/websockets-plugin";
const stpConn = new StpWS.StpWebSocketsConnector("wss://server.com:port");
```

Or import individual types:

```javascript
import { StpWebSocketsConnector } from "@hyssostech/websockets-plugin";
const stpConn = new StpWebSocketsConnector("wss://server.com:port");
```

## Quickstart example

This plugin is used in the [quickstart](../../../quickstart/README.md) to provide the main SDK object the means to communicate with STP.  


## Building the project

The repository includes a pre-built `dist` folder that can be used directly for testing. If changes are made to the sample and there is a need to rebuild, run:

```
npm install
npm run build
```

---
_Source: https://npm.io/package/@hyssostech/websockets-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
