{"id":19197333,"url":"https://github.com/versatica/jssip-node-websocket","last_synced_at":"2025-05-09T00:43:48.889Z","repository":{"id":57286356,"uuid":"60014546","full_name":"versatica/jssip-node-websocket","owner":"versatica","description":"JsSIP.Socket interface for the Node.js based on the websocket module","archived":false,"fork":false,"pushed_at":"2024-06-12T08:58:03.000Z","size":79,"stargazers_count":19,"open_issues_count":1,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-17T01:38:37.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/versatica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-30T14:02:44.000Z","updated_at":"2024-09-26T12:46:58.000Z","dependencies_parsed_at":"2022-09-20T00:21:10.753Z","dependency_job_id":null,"html_url":"https://github.com/versatica/jssip-node-websocket","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/versatica%2Fjssip-node-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/versatica%2Fjssip-node-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/versatica%2Fjssip-node-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/versatica%2Fjssip-node-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/versatica","download_url":"https://codeload.github.com/versatica/jssip-node-websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249881784,"owners_count":21339537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T12:16:24.022Z","updated_at":"2025-04-20T10:32:31.118Z","avatar_url":"https://github.com/versatica.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## jssip-node-websocket\n\n`JsSIP.Socket` interface for Node.js based on the [websocket](https://www.npmjs.com/package/websocket) module.\n\nThe aim of this module is to provide [JsSIP](http://jssip.net) with WebSocket support when running in Node.js.\n\n\n## Installation\n\n```bash\n$ npm install jssip-node-websocket --save\n```\n\n\n## Requirements\n\n* [jssip](http://jssip.net) \u003e= `v2.0.0`\n* Node.js \u003e= `v4.0.0` \u003c `v20.0.0`\n\n### Node \u003e= `v20.0.0`\n\nSince Node `v20.0.0` the API for parsing URL has changed. To be compatible with Node `v20.0.0` and previous versions you can use the following package:\n\n[@meecode/jssip-node-websocket](https://www.npmjs.com/package/@meecode/jssip-node-websocket)\n\n## Usage\n\n```javascript\nconst JsSIP = require('jssip');\nconst NodeWebSocket = require('jssip-node-websocket');\n\nlet socket = new NodeWebSocket('wss://foo.example.com');\n\nlet ua = new JsSIP.UA(\n  {\n    uri          : 'sip:alice@example.com',\n    password     : 'xxxxxxxx',\n    display_name : 'Alice',\n    sockets      : [ socket ]\n  });\n```\n\n\n## API\n\nThe module exports a `NodeWebSocket` class conforming with the `JsSIP.Socket` interface.\n\n\n### `var socket = new NodeWebSocket(url, [options])`\n\n* `url` (String): The WebSocket URL.\n* `options` (Object): An object with fields `origin`, `headers`, `requestOptions` and `clientConfig` matching the same meaning and format of the parameters given to the [websocket.W3CWebSocket](https://github.com/theturtle32/WebSocket-Node/blob/v1.0.23/docs/W3CWebSocket.md) class constructor.\n\n\n## F.A.Q.\n\n##### How to allow invalid TLS certificates?\n\n```javascript\nvar socket = new Socket('wss://foo.example.com',\n  {\n    origin         : 'https://www.example.com',\n    requestOptions :\n    {\n      agent : new https.Agent({ rejectUnauthorized: false })\n    }\n  });\n```\n\n\n## Author\n\nIñaki Baz Castillo ([@ibc](https://github.com/ibc/) at Github)\n\n\n## License\n\n[ISC](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversatica%2Fjssip-node-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fversatica%2Fjssip-node-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversatica%2Fjssip-node-websocket/lists"}