{"id":17786145,"url":"https://github.com/dcodeio/webrcon","last_synced_at":"2025-03-16T05:31:07.300Z","repository":{"id":65990091,"uuid":"53089976","full_name":"dcodeIO/WebRcon","owner":"dcodeIO","description":"RCON over WebSocket client library and command line interface.","archived":false,"fork":false,"pushed_at":"2016-03-04T00:33:28.000Z","size":12,"stargazers_count":19,"open_issues_count":4,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T05:12:11.078Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcodeIO.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-03T22:48:08.000Z","updated_at":"2024-10-28T17:44:48.000Z","dependencies_parsed_at":"2023-04-04T18:01:16.220Z","dependency_job_id":null,"html_url":"https://github.com/dcodeIO/WebRcon","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"d4b87be868c0c8285896a88180964a80b2314bcf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FWebRcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FWebRcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FWebRcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcodeIO%2FWebRcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcodeIO","download_url":"https://codeload.github.com/dcodeIO/WebRcon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806122,"owners_count":20350773,"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-10-27T09:04:52.468Z","updated_at":"2025-03-16T05:31:07.294Z","avatar_url":"https://github.com/dcodeIO.png","language":"JavaScript","readme":"WebRcon\n============\nRCON over WebSocket client library and command line interface.\n\n* Supported games: [Rust](http://playrust.com)\n* Supported platforms: node.js and any modern browser (CommonJS, AMD, shim)\n\nUsage\n-----\n```js\nvar WebRcon = require('webrconjs') // node.js only\n\n// Create a new client:\nvar rcon = new WebRcon('127.0.0.1', 28025)\n\n// Handle events:\nrcon.on('connect', function() {\n    console.log('CONNECTED')\n    \n    // Run a command once connected:\n    rcon.run('echo hello world!', 0)\n})\nrcon.on('disconnect', function() {\n    console.log('DISCONNECTED')\n})\nrcon.on('message', function(msg) {\n    console.log('MESSAGE:', msg)\n})\nrcon.on('error', function(err) {\n    console.log('ERROR:', err)\n})\n\n// Connect by providing the server's rcon.password:\nrcon.connect('1234')\n```\n\nBrowser usage\n-------------\n```html\n\u003cscript src=\"webrcon.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nvar WebRcon = dcodeIO.WebRcon;\n\n... actually the same as above ....\n\u003c/script\u003e\n```\n\nAlso works as an AMD module.\n\nCommand line usage\n------------------\n`npm -g install webrconjs`\n\n```\nUsage: webrcon \u003cip\u003e [port] [password]\n\nExamples:\n  webrcon 127.0.0.1 27015 p4ssw0rd  Connects to the local machine\n```\n\n**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcodeio%2Fwebrcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcodeio%2Fwebrcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcodeio%2Fwebrcon/lists"}