add: improved the frontend and the backend by adding websockets

This commit is contained in:
Lukian 2025-04-07 22:46:04 +02:00
parent ecf7b61aca
commit fbf7821320
18 changed files with 255 additions and 65 deletions

View file

@ -31,7 +31,7 @@ export default function CreateChannel() {
axios
.post("/api/channels/add", { name, description, token })
.then(() => {
navigate("/");
navigate(`/c/${name}`);
})
.catch((err) => {
console.error(err.response.data.message);