Skip to content

Commit 1db7e4d

Browse files
committed
Request stats from wings when loading the console; closes pterodactyl#2414
1 parent ff50940 commit 1db7e4d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

resources/scripts/components/server/Console.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const TerminalDiv = styled.div`
5252
export default () => {
5353
const TERMINAL_PRELUDE = '\u001b[1m\u001b[33mcontainer@pterodactyl~ \u001b[0m';
5454
const [ terminalElement, setTerminalElement ] = useState<HTMLDivElement | null>(null);
55+
5556
const useRef = useCallback(node => setTerminalElement(node), []);
5657
const terminal = useMemo(() => new Terminal({ ...terminalProps }), []);
5758
const { connected, instance } = ServerContext.useStoreState(state => state.socket);

resources/scripts/components/server/ServerConsole.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default () => {
5353
}
5454

5555
instance.addListener('stats', statsListener);
56+
instance.send('send stats');
5657

5758
return () => {
5859
instance.removeListener('stats', statsListener);

0 commit comments

Comments
 (0)