abord trying to live informe for new rooms
This commit is contained in:
@@ -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}`;
|
||||
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
Reference in New Issue
Block a user