{"library":"sockjs-client","type":"library","category":null,"description":"SockJS-client is a browser JavaScript library (current stable version 1.6.1) that provides a WebSocket-like object, abstracting away underlying transport mechanisms. It aims to offer a coherent, cross-browser, full-duplex communication channel between the browser and a web server, even in environments without native WebSocket support or behind restrictive corporate proxies. The library first attempts to use native WebSockets, falling back to various browser-specific transports (like streaming or polling) if necessary. Releases are somewhat irregular but active, with recent updates focusing on security fixes and dependency updates. A key differentiator is its robust fallback mechanism, adhering closely to the HTML5 WebSocket API, and supporting cross-domain connections without requiring Flash. It explicitly requires a server counterpart, such as `sockjs-node`, for functionality.","language":"javascript","status":"active","version":"1.6.1","tags":["javascript","websockets","websocket"],"install":[{"cmd":"npm install sockjs-client","imports":["import SockJS from 'sockjs-client';","<script src=\"https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js\"></script>\n// SockJS is then available as a global variable","import SockJS from 'sockjs-client';\n// Or if type errors occur: import * as SockJS from 'sockjs-client';"]},{"cmd":"yarn add sockjs-client","imports":[]},{"cmd":"pnpm add sockjs-client","imports":[]}],"homepage":"http://sockjs.org","github":"https://github.com/sockjs/sockjs-client","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sockjs-client","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/sockjs-client/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}