prepair redux
This commit is contained in:
9
redux/actions.js
Normal file
9
redux/actions.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// /redux/actions.js
|
||||
export const connectWebSocket = (url) => ({
|
||||
type: "WS_CONNECT",
|
||||
payload: { url },
|
||||
});
|
||||
|
||||
export const disconnectWebSocket = () => ({
|
||||
type: "WS_DISCONNECT",
|
||||
});
|
||||
Reference in New Issue
Block a user