import * as socketio from "socket.io"; /** * This class handles all SocketIO connections. * * *SocketIO is another layer ontop of WebSockets* */ class SocketManager { io: socketio.Server; express: Express.Application; constructor (express: Express.Application) { this.io = new socketio.Server(express); this.express = express; } init() { this.io.on('connect', data => { console.log('New connection') }); } }