WebSocket transport implementation for the LIME (Lightweight Messaging Protocol) protocol. Version 2.0.3 enables bidirectional communication over WebSockets for LIME-based applications, commonly used in instant messaging and IoT. The library provides a WebSocketTransport class that implements the LIME transport contract, supporting connection management, message serialization, and automatic reconnection. It is part of the LIME protocol ecosystem, typically used alongside lime-client and lime-csharp. Released under MIT license.
npm install lime-transport-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a WebSocketTransport, connecting, sending a LIME message, and handling events.
Use `import { WebSocketTransport } from 'lime-transport-websocket'` instead of default import.Run `npm install ws` if using Node.js.
Pass `wsConstructor: require('ws')` in options.Listen for 'disconnected' event and call connect() again.
Ensure messages have 'id', 'from', 'to', 'type', and 'content' fields.
Switch to `import` syntax or use dynamic import.
Change to `import { WebSocketTransport } from 'lime-transport-websocket'`.Run `npm install ws` in your project.
Pass `wsConstructor: require('ws')` in options or upgrade Node.js.Ensure message object includes 'id', 'from', 'to', 'type', and 'content'.