forked from noxious/client
updated packages, updated websocket to socket.io, moved login styling to its own scss file
This commit is contained in:
13
src/services/socketio.service.ts
Normal file
13
src/services/socketio.service.ts
Normal file
@ -0,0 +1,13 @@
|
||||
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();
|
Reference in New Issue
Block a user