<script setup lang="ts">
import { useRouter } from "vue-router";
import { exceptionOb } from "./services/httpRequest";
import { createWebSocket, sharedWsUrl } from "./services/socket";
const router = useRouter();

exceptionOb.subscribe(exp => {
	if (exp === "invalidToken") {
		router.replace("/login");
	}
});

</script>

<template>
	<div>
		<router-view></router-view>
	</div>
</template>

<style>
html,
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
</style>
