|
|
|
|
@ -11,7 +11,7 @@ export async function getLoggedUser() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function createRoomEventStream(roomId) {
|
|
|
|
|
return new EventSource(`/api/room_events?id=${roomId}`)
|
|
|
|
|
return new EventSource(`${import.meta.env.BASE_URL}api/room_events?id=${roomId}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const Database = {
|
|
|
|
|
|