abord trying to live informe for new rooms

This commit is contained in:
simplonco
2023-01-15 14:07:34 +01:00
parent 804cab9c8d
commit ffdc3839b9
4 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
import io from 'socket.io-client';
import { set_socket, set_user } from './Store_chat';
import { user, msgs, layout } from './Store_chat';
import { user, msgs, layout, set_socket, set_user } from './Store_chat';
const address = `http://${process.env.WEBSITE_HOST}:${process.env.WEBSITE_PORT}`;

View File

@@ -2,6 +2,8 @@ import { writable } from 'svelte/store';
import type { Room, Message } from './Types_chat';
export let msgs = writable([]);
export let my_rooms = writable([]);
export let all_rooms = writable([]);
export let layout = writable("close");
export let current_room = writable({
name: "",