Cryo-Server is a lightweight WebSocket server framework for Node.js that handles client authentication, session lifecycle management, and data framing. Current stable version is 2.9.4. Part of the Cryo ecosystem with client implementations for TypeScript/JavaScript (Node.js and browsers) and C# (.NET). Key differentiators: built-in backpressure support with configurable drop policies, SSL/TLS support, and an extension interface for building RPC or other protocols on top. Released on npm, with infrequent updates.
npm install cryo-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Cryo server with token validation, event listeners for session lifecycle, and backpressure configuration.
Use import { ... } from 'cryo-server' and ensure package.json includes "type": "module".Pass port inside the options object: cryo(validator, { port: 8080 }) instead of cryo(port, validator).Explicitly configure backpressure options based on your expected load.
Always return true or false explicitly.
Switch to import syntax or set "type": "module" in your package.json.
Use import { cryo } from 'cryo-server' instead of import cryo from 'cryo-server'.Provide a valid token validator object with a validate method.