Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/EnriqCG/rcon-srcds
/ functions
Functions
13 in github.com/EnriqCG/rcon-srcds
⨍
Functions
13
◇
Types & classes
4
↓ 4 callers
Method
write
* Writes to socket connection * @param type Packet Type * @param id Packet ID * @param body Packet payload
src/rcon.ts:144
↓ 1 callers
Method
connect
* Creates a connection to the socket
src/rcon.ts:89
↓ 1 callers
Method
disconnect
* Destroys the socket connection
src/rcon.ts:109
Method
authenticate
* Authenticates the connection * @param password Password string
src/rcon.ts:34
Method
constructor
* Source RCON (https://developer.valvesoftware.com/wiki/Source_RCON) * @param options Connection options
src/rcon.ts:19
Function
decode
(buf: Buffer, encoding: EncodingOptions = 'ascii')
src/packet.ts:28
Function
encode
(type: number, id: number, body: string, encoding: EncodingOptions = 'ascii')
src/packet.ts:9
Method
execute
* Executes command on the server * @param command Command to execute
src/rcon.ts:63
Method
isAuthenticated
()
src/rcon.ts:134
Method
isConnected
()
src/rcon.ts:130
Method
onClose
()
src/rcon.ts:120
Method
onData
(packet: Buffer)
src/rcon.ts:149
Method
onError
(e: Error)
src/rcon.ts:115