Files
LingChair/client/api/Client.ts
2025-08-31 13:19:49 +08:00

12 lines
267 B
TypeScript

import { io, Socket } from 'https://unpkg.com/socket.io-client@4.8.1/dist/socket.io.esm.min.js'
class Client {
static socket: Socket
static connect() {
this.socket && this.socket.disconnect()
this.socket = io()
}
}
export default Client