{"id":25972149,"url":"https://github.com/mainframeos/rx-socket","last_synced_at":"2025-08-04T18:10:34.114Z","repository":{"id":65492126,"uuid":"111002234","full_name":"MainframeOS/rx-socket","owner":"MainframeOS","description":"RxJS Subject for Node sockets","archived":false,"fork":false,"pushed_at":"2019-02-13T14:07:49.000Z","size":292,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-26T09:13:42.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MainframeOS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-16T17:35:39.000Z","updated_at":"2020-02-15T22:10:00.000Z","dependencies_parsed_at":"2023-01-25T19:25:14.544Z","dependency_job_id":null,"html_url":"https://github.com/MainframeOS/rx-socket","commit_stats":null,"previous_names":["mainframehq/rx-socket"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/MainframeOS/rx-socket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MainframeOS%2Frx-socket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MainframeOS%2Frx-socket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MainframeOS%2Frx-socket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MainframeOS%2Frx-socket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MainframeOS","download_url":"https://codeload.github.com/MainframeOS/rx-socket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MainframeOS%2Frx-socket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268739765,"owners_count":24299754,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-03-05T00:19:47.571Z","updated_at":"2025-08-04T18:10:34.075Z","avatar_url":"https://github.com/MainframeOS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rx-socket\n\n[RxJS Subject](https://rxjs.dev/guide/subject) for\n[Node Socket](https://nodejs.org/api/net.html#net_class_net_socket).\n\n## Installation\n\n```sh\nyarn add rx-socket\n```\n\n## Usage\n\n```js\nimport { SocketSubject } from 'rx-socket'\n\nconst socket = new SocketSubject('/path/to/socket')\n\nsocket.subscribe(data =\u003e {\n  // `data` will be an Object, expecting a JSON-encoded string to be provided\n  console.log(data)\n})\n\n// `next()` will encode the provided value to JSON\nsocket.next({ hello: 'world' })\n```\n\nSee the\n[`socket.connect()` documentation](https://nodejs.org/api/net.html#net_socket_connect)\nfor the supported `SocketSubject` constructor argument.\n\n## License\n\nMIT.\\\nSee [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainframeos%2Frx-socket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainframeos%2Frx-socket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainframeos%2Frx-socket/lists"}