refactor: use SocketWrapper to wrap the instance

This commit is contained in:
wancat committed 2023-08-18 21:19:11 +08:00
1 parent 313d30edda
commit 5d9951a3a2
5 files changed
+75 -38

No files matched your search

+2
View File
@@ -30,9 +30,11 @@
<script setup>
import sessionManager from '../utils/session'
import socket from '../utils/socket'
const reset = async () => {
console.log('resetting...')
await sessionManager.createSession()
socket.connect(sessionManager.getSession())
}
</script>