Skip to content

Commit efbe9ad

Browse files
authored
Fix forcefully reconnecting/disconnecting the chatbox websocket (#6099)
## Changelog :cl: fix: Forcefully reconnecting or disconnecting the chatbox websocket now properly works. /:cl:
1 parent 0c3ea57 commit efbe9ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tgui/packages/tgui-panel/settings/SettingsPanel.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ const ExperimentalSettings = (props, context) => {
487487
icon={'globe'}
488488
color={'good'}
489489
onClick={() => {
490-
dispatch(reconnectWebsocket());
490+
dispatch(reconnectWebsocket({}));
491491
}}
492492
/>
493493
<Button
@@ -496,7 +496,7 @@ const ExperimentalSettings = (props, context) => {
496496
icon={'globe'}
497497
color={'bad'}
498498
onClick={() => {
499-
dispatch(disconnectWebsocket());
499+
dispatch(disconnectWebsocket({}));
500500
}}
501501
/>
502502
</LabeledList.Item>

0 commit comments

Comments
 (0)