mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 07:30:41 +09:00
Add debug-dump-ws command
Add debug command to dump the WebSocket messages being sent and received by the master server to aid in finding chatty events.
This commit is contained in:
1 parent
61d92a6910
commit
2c855a5846
4 files changed
+56
-1
No files matched your search
@@ -195,6 +195,12 @@ messages.ping = new Request({
|
||||
links: wsLinks,
|
||||
});
|
||||
|
||||
messages.debugDumpWs = new Request({
|
||||
type: "debug_dump_ws",
|
||||
links: ["control-master"],
|
||||
});
|
||||
|
||||
|
||||
// Management requests
|
||||
messages.listSlaves = new Request({
|
||||
type: 'list_slaves',
|
||||
@@ -484,6 +490,15 @@ class Event {
|
||||
}
|
||||
}
|
||||
|
||||
messages.debugWsMessage = new Event({
|
||||
type: "debug_ws_message",
|
||||
links: ["master-control"],
|
||||
eventProperties: {
|
||||
"direction": { type: "string" },
|
||||
"content": { type: "string" },
|
||||
},
|
||||
});
|
||||
|
||||
messages.instanceStopped = new Event({
|
||||
type: 'instance_stopped',
|
||||
links: ['instance-slave'],
|
||||
|
||||
Reference in new issue
Block a user