{"id":15472884,"url":"https://github.com/hackvan/tcp-protocol","last_synced_at":"2026-06-18T17:31:55.125Z","repository":{"id":145341915,"uuid":"267971334","full_name":"hackvan/tcp-protocol","owner":"hackvan","description":" Making an HTTP server with Node and Ruby in the TCP layer.","archived":false,"fork":false,"pushed_at":"2020-05-29T23:44:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T22:26:05.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/hackvan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-29T23:02:32.000Z","updated_at":"2020-05-29T23:44:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"0313052a-aa30-4650-9c78-1d8b3fdedf83","html_url":"https://github.com/hackvan/tcp-protocol","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"b27ad213d858bb0095a69a0ecd11e99f6c38e826"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hackvan/tcp-protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Ftcp-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Ftcp-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Ftcp-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Ftcp-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackvan","download_url":"https://codeload.github.com/hackvan/tcp-protocol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Ftcp-protocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34501472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":"2024-10-02T02:41:31.707Z","updated_at":"2026-06-18T17:31:55.110Z","avatar_url":"https://github.com/hackvan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP basic examples inside the TCP layer\n\nThese are examples with Node and Ruby for try to make a (very) basic HTTP server to return responses for the HTTP/1.1 protocol version.\n\n## Requirements:\n\n```bash\n$ node -v\nv10.16.0\n\n$ ruby -v\nruby 2.6.3p62\n```\n\n## Run the Servers:\n\n### Javascript\n\n```bash\n$ node node/index.js\n```\n\n### Ruby\n\n```bash\n$ ruby ruby/server.rb\n```\n\n## Try with:\n\n- Web Browser\n\n  [http://localhost:3000](http://localhost:3000)\n\n- Telnet CLI\n  ```bash\n  $ telnet localhost 3000\n  Trying 127.0.0.1...\n  Connected to localhost.\n  Escape character is '^]'.\n  ```\n  Type in: `GET / HTTP/1.1`\n\n  Return:\n  ```bash\n  HTTP/1.1 200 OK\n\n  \u003ch1\u003eHola Mundo\u003c/h1\u003eConnection closed by foreign host.\n  ```\n\n## Resources:\n1. [Make It Real - Tutorial](https://www.youtube.com/watch?v=rcrb-i86ohE)\n1. [Ruby Docs - Sockets](https://ruby-doc.org/stdlib-2.5.3/libdoc/socket/rdoc/TCPServer.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackvan%2Ftcp-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackvan%2Ftcp-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackvan%2Ftcp-protocol/lists"}