{"id":16726880,"url":"https://github.com/lpil/node-socket-client","last_synced_at":"2026-02-17T21:31:15.084Z","repository":{"id":248602486,"uuid":"829163565","full_name":"lpil/node-socket-client","owner":"lpil","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-22T11:29:07.000Z","size":9,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-23T02:27:46.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Gleam","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/lpil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-15T22:19:48.000Z","updated_at":"2026-01-22T11:29:12.000Z","dependencies_parsed_at":"2024-07-16T02:34:45.489Z","dependency_job_id":"8952966c-9e14-4ca0-9b47-dd35826ae8b3","html_url":"https://github.com/lpil/node-socket-client","commit_stats":null,"previous_names":["lpil/node-socket-client"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lpil/node-socket-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fnode-socket-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fnode-socket-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fnode-socket-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fnode-socket-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/node-socket-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fnode-socket-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29558464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T20:52:40.164Z","status":"ssl_error","status_checked_at":"2026-02-17T20:48:10.325Z","response_time":100,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-12T22:54:56.738Z","updated_at":"2026-02-17T21:31:15.067Z","avatar_url":"https://github.com/lpil.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node_socket_client\n\nBindings to Node's TCP socket client.\n\n[![Package Version](https://img.shields.io/hexpm/v/node_socket_client)](https://hex.pm/packages/node_socket_client)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/node_socket_client/)\n\n```sh\ngleam add node_socket_client@1\n```\n```gleam\nimport node_socket_client.{DataEvent, CloseEvent, ErrorEvent} as socket\n\npub fn main() {\n  socket.connect(\"localhost\", 3000, 0, fn(count, _socket, event) {\n    case event {\n      DataEvent(data) -\u003e io.println(\"Got data: \" \u003c\u003e data)\n      ErrorEvent(error) -\u003e io.println(\"Got error: \" \u003c\u003e error)\n      CloseEvent(had_error: True) -\u003e io.println(\"Closed with error\")\n      CloseEvent(had_error: False) -\u003e io.println(\"Closed\")\n      _other_event -\u003e Nil\n    }\n    count + 1\n  })\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/node_socket_client\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fnode-socket-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Fnode-socket-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fnode-socket-client/lists"}