A Botium connector for testing chatbots served via WebSocket endpoints. Version 0.0.12 is the latest stable release, with no recent updates. It transforms Botium's internal message format to match the WebSocket communication protocol, supporting both user-to-bot and bot-to-user directions. Compared to other Botium connectors (e.g., for REST or Socket.io), this one is specifically designed for raw WebSocket connections and requires manual configuration of request/response templates. It is part of the Botium ecosystem and works with Botium CLI, Bindings, and Box. Requires Node.js >=8.3 and peer dependency botium-core >=1.10.0.
npm install botium-connector-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the WebSocket connector with Botium Core: set capabilities, start, send a message, and stop.
Ensure the template matches your bot's expected request format and the JSON path extracts the correct response text field.
Set WEBSOCKET_REJECT_UNAUTHORIZED to false in capabilities.
Upgrade Node.js to version 8.3 or higher.
Implement custom logic or use a proxy that handles reconnection if needed.
Install botium-core: npm install botium-core
Use correct import pattern: const BotiumConnectorWebsocket = require('botium-connector-websocket'); for CommonJS, or import BotiumConnectorWebsocket from 'botium-connector-websocket'; for ESM.Start the WebSocket server on the specified URL/port, or update WEBSOCKET_URL capability.
Use a valid JSONPath expression, e.g., '$.text' for a top-level text field.