{"id":25601433,"url":"https://github.com/magnusthor/thorio.tcpclient","last_synced_at":"2026-06-21T02:31:18.974Z","repository":{"id":148056241,"uuid":"54560520","full_name":"MagnusThor/thorio.tcpclient","owner":"MagnusThor","description":"TCPClient for thor.io - used to connect to a server ThorIO.TCPServer (Engine)","archived":false,"fork":false,"pushed_at":"2016-04-19T11:38:51.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T15:55:12.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/MagnusThor/thorio/wiki","language":"JavaScript","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/MagnusThor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-03-23T13:08:01.000Z","updated_at":"2016-03-23T15:04:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3d067c3-cab3-4aa5-af5c-7f3f2d81173e","html_url":"https://github.com/MagnusThor/thorio.tcpclient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MagnusThor/thorio.tcpclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusThor%2Fthorio.tcpclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusThor%2Fthorio.tcpclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusThor%2Fthorio.tcpclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusThor%2Fthorio.tcpclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MagnusThor","download_url":"https://codeload.github.com/MagnusThor/thorio.tcpclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusThor%2Fthorio.tcpclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34592050,"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-21T02:00:05.568Z","response_time":54,"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-02-21T15:54:30.631Z","updated_at":"2026-06-21T02:31:18.969Z","avatar_url":"https://github.com/MagnusThor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thorio.tcpclient\n\n##About\n\nTCPClient for thor.io - used to connect to a server ThorIO.TCPServer (Engine endpoint).\n\nThe ThorIO.TCPClient is a complement to the ThorIO.Client (WebSocket) that enables you to connect to a thor.io using a raw `socket` .  See the wiki pages of thor.io for futher information - https://github.com/MagnusThor/thorio/wiki\n\n\n##Example\n\n\nThis example shows how to use the ThorIO.TCPClient \n\n    var thorIO = require(\"tthorio-tcpclient\");\n    // ctor host, port and Controller (channel) \n \n    var client = new thorIO.TcpClient(\"localhost\", \"4502\", \"foo\");\n    client.onopen = function(ci) {\n\t  console.log(\"connected to endpoint and 'foo' controller/channel\", ci);\n\t\n    // add a listener for \"say\"\n\n\tclient.setProperty(\"age\", 11);\n\n\tclient.on(\"say\", function(data) {\n\t\tconsole.log(\"say\", data);\n\t});\n\n\tsetInterval(function() {\n\t\tclient.invoke(\"sayTo\", {\n\t\t\tmessage: \"foo\",\n\t\t\tcreated: new Date()\n\t\t});\n\t }, 4000);\n    };\n\n    client.onclose = function() {\n\t console.log(\"connection to enpoint closed...\");   \n    };\n\n    client.connect(); // open the connection\n    \n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnusthor%2Fthorio.tcpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagnusthor%2Fthorio.tcpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnusthor%2Fthorio.tcpclient/lists"}