Desc:
- Penambahan fitur notif realtime
Issue: Error socket
This commit is contained in:
2023-10-17 17:21:48 +08:00
parent 7035139733
commit 5f430786b4

View File

@@ -0,0 +1,17 @@
"use client";
import { useShallowEffect } from "@mantine/hooks";
import io from "socket.io-client";
import { toast } from "react-toastify";
// const socket = io("https://io.wibudev.com");
export default function AppNotif() {
// useShallowEffect(() => {
// socket.on("io", (data) => {
// console.log(JSON.stringify(data))
// if (data && data.id === "hipmi") {
// toast.success(data.data);
// }
// });
// }, []);
return <></>;
}