prepair redux

This commit is contained in:
ISA
2024-09-09 15:20:00 +02:00
parent f0c61570a0
commit aa38493f03
9 changed files with 160 additions and 6 deletions

9
redux/actions.js Normal file
View File

@@ -0,0 +1,9 @@
// /redux/actions.js
export const connectWebSocket = (url) => ({
type: "WS_CONNECT",
payload: { url },
});
export const disconnectWebSocket = () => ({
type: "WS_DISCONNECT",
});