Registry / messaging / podasync-ws-only

podasync-ws-only

JSON →
library2.9.0-snapshot.14jsnpmunverified

A WebSocket-only client library for Fanap's POD Async (DIRANA) service, enabling real-time bidirectional communication. Current stable version is 2.9.0-snapshot.14 with daily snapshot releases. Key differentiators: lightweight, single-purpose WebSocket implementation (no long-polling or fallbacks), designed specifically for Fanap's POD ecosystem. Unmaintained since 2020, with no recent updates or security patches.

npm install podasync-ws-only
INSTALL
IMPORT
SIG · PODASYNC-WS-ONLY
P
podasync-ws-only
messagingjavascriptv2.9.0-snapshot.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PodAsyncClient
import { PodAsyncClient } from 'podasync-ws-only'
const PodAsyncClient = require('podasync-ws-only')
Package is CJS-compatible, but TypeScript projects prefer ESM import.
MessageType
import { MessageType } from 'podasync-ws-only'
Enum or object for WebSocket message types.
ConnectionState
import { ConnectionState } from 'podasync-ws-only'
Enum or object for connection states (connected, disconnected, etc.).

Initializes a PodAsyncClient with WebSocket URL, app ID, and token, then connects and handles events.

import { PodAsyncClient } from 'podasync-ws-only'; const client = new PodAsyncClient({ socketAddress: 'wss://your-pod-server.com/ws', appId: process.env.POD_APP_ID || '', token: process.env.POD_ACCESS_TOKEN || '', }); client.on('open', () => { console.log('Connected'); client.sendMessage({ type: 'PING' }); }); client.on('message', (data) => { console.log('Received:', data); }); client.on('close', () => { console.log('Disconnected'); }); client.connect();
Debug
Known issues
gotchaPackage is unmaintained and no longer receives security updates or bug fixes.
fix
Migrate to a maintained alternative or implement your own WebSocket client.
affects: >=0.0.0
gotchaSocket address must include the 'wss://' or 'ws://' protocol prefix; missing protocol causes connection failure.
fix
Ensure socketAddress starts with 'wss://' (preferred) or 'ws://'.
affects: >=0.0.0
gotchaToken and appId are required for authentication; missing them throws an error or silent failure.
fix
Provide valid token and appId in the constructor options.
affects: >=0.0.0
Errors
Common errors & fixes
Error: socketAddress is required
Missing 'socketAddress' in constructor options.
fix
Add 'socketAddress' with a valid WebSocket URL.
TypeError: Cannot read property 'send' of undefined
Attempting to send a message before the connection is established.
fix
Wait for the 'open' event before calling sendMessage().
Upgrade
Version history
2.9.0-snapshot.14latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
podasync-ws-only — npm install podasync-ws-only · libregistry