WebSocket addon for MobX-Spine that provides WebSocket creation, keepalive, automatic reconnection, pub/sub via high-templar. Version 0.5.0 (latest, stable). Release cadence is low; maintained by CodeYellowBV. Key differentiators: integrates with MobX-Spine ecosystem, session/token auth via WebSocket upgrade.
npm install spine-high-templarNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Socket, sets it on the MobX-Spine api, subscribes to a room, and handles cleanup.
Only instantiate Socket after bootstrap (e.g., after fetchBootstrap resolves with 200).
Pass token in constructor when using token auth; do not attempt to set custom WebSocket headers.
Store subscription reference and call socket.unsubscribe(subscription) on unmount.
Ensure api.socket is set: api.socket = new Socket({...});Defer socket creation until after successful bootstrap (e.g., after fetchBootstrap resolves).