13 lines
286 B
TypeScript
13 lines
286 B
TypeScript
import { io, Socket } from 'socket.io-client'
|
|
import config from '@/config';
|
|
|
|
class SocketioService {
|
|
socket: Socket | undefined;
|
|
constructor() {}
|
|
|
|
setupSocketConnection(): void {
|
|
this.socket = io(config.server_endpoint as string);
|
|
}
|
|
}
|
|
|
|
export default new SocketioService(); |