{"repo":"liamcottle/rustplus.js","free":true,"listed":false,"github":"https://github.com/liamcottle/rustplus.js","clone":"git clone https://github.com/liamcottle/rustplus.js.git","description":"Unofficial NodeJS library for controlling Smart Switches in the PC game Rust","language":"JavaScript","stars":321,"topics":["rust","rustplus","companion","api","websocket","smart-switch","smart-alarm","team-chat","rustplus-api","rust-server"],"license":null,"category":"networking-infra","readme_excerpt":"This is an unofficial NodeJS library for interacting with Smart Switches, Smart Alarms and various other things in the PC game Rust. It communicates with the Rust Game Server via the WebSocket running on the port configured in your server.cfg as app.port . The server owner needs to make sure their app.port has been configured and opened in their firewall. Also, feel free to check out my new rust project Atlas. It's an interactive map experience for Rust. Install To use this library in your own NodeJS app, you can install it via npm . Features Below is a list of convenience methods that are implemented for common requests in the RustPlus library. Examples of these can be found in the examples section. - turnSmartSwitchOn Turn Smart Switch on - turnSmartSwitchOff Turn Smart Switch off - sendTeamMessage Send messages to Team Chat - getEntityInfo Get current state of a Smart Device - setEntityValue Set the value of a Smart Device - getInfo Get info about the Rust Server - getMap Fetch map info, which inclues a jpeg image - getTime Get the current in game time - getMapMarkers Get map markers, such as vending machines and cargo/heli - getTeamInfo Get list of team members and positions on map More requests are available and can be found in the AppRequest message section of the rustplus.proto protobuf file that I wrote by hand. For requests that aren't available through a convenience method, you can still craft and send the requests manually with sendRequest , as shown below. Have a ","default_branch":null,"files":null,"tree":[],"storefront":"/r/liamcottle","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/liamcottle/rustplus.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}