Hello, I am trying to develop a web application that allows me to type commands in the Rcon console via the web Browser.
The problem is that every time I send a command I get “[Rcon] Failed to parse message, incorrect format”.
Here is the log:
05:28 [Info] Loading Oxide Core v2.0.3991...
05:28 [Info] Loading extensions...
05:28 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
05:28 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
05:28 [Info] Loaded extension Rust v2.0.4891 by Oxide Team and Contributors
05:28 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
05:28 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
05:28 [Info] Latest compiler MD5: 5fbca0bf39b1c09ddf2fb3686b869242
05:28 [Info] Local compiler MD5: 5fbca0bf39b1c09ddf2fb3686b869242
05:28 [Info] Using Covalence provider for game 'Rust'
05:28 [Info] Loading plugins...
05:28 [Info] Loaded plugin Rust v2.0.4891 by Oxide Team and Contributors
05:28 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
05:29 [Info] IP address from Steam query: *.*.*.*
5:31 [Error] [Rcon] Failed to parse message, incorrect formatAnd here JavaScript
function webSocketTest() {
const rcon = new WebSocket('ws://localhost:28016/1234');
rcon.onopen = function(e) {
rcon.send('status');
}
rcon.onmessage = function(e) {
// Code
}
rcon.onerror = function(e) {
// Code
}
rcon.onclose = function(e) {
// Code
}
}After hours looking for information, I have not found anything to help me. I would appreciate help. Could you guys help me?