Removed the action socket from the backend -> Moving into another repo

This commit is contained in:
2022-09-08 22:30:33 +02:00
parent 499a44cad7
commit 8c5a4a94a0
2 changed files with 0 additions and 14 deletions

View File

@ -1,12 +0,0 @@
import {WebSocketServer} from 'ws';
let server: WebSocketServer;
/** Logs something with a socket prefix */
const log = (msg: string) => console.log(`[ActionSocket] ${msg}`);
/** Starts the socket server */
export const startServer = (port: number = 8674) => {
server = new WebSocketServer({port});
log(`Listening on port ${port}`);
}