pushrax / node-rcon

A generic RCON protocol client for node.js
MIT License
134 stars 31 forks source link

Get console messages #19

Closed KSti56 closed 5 years ago

KSti56 commented 6 years ago

Is it possible to get console messages when they are sent through RCON?

pushrax commented 6 years ago

Anything sent by the server should show up in the response callback. Are you running into a specific issue?

Heath123 commented 4 years ago

Anything sent by the server should show up in the response callback. Are you running into a specific issue?

No, that's only when it's a response. I tried the server callback but it doesn't seem to work.

pushrax commented 4 years ago

There are no other documented packet types https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Requests_and_Responses.

Could you try adding a debug log to a new else condition in this codepath to see if you're getting back packets of an undocumented type? https://github.com/pushrax/node-rcon/blob/9c05be51b0ee48d6877cf7b52e8bd6edf0a3f555/node-rcon.js#L148-L162

Heath123 commented 4 years ago

Never mind, I realised that the server doesn't send those over RCON